• Stars
    star
    1,785
  • Rank 25,886 (Top 0.6 %)
  • Language
    Python
  • License
    GNU General Publi...
  • Created over 8 years ago
  • Updated 6 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

ARA Records Ansible and makes it easier to understand and troubleshoot.

ARA Records Ansible

ARA Records Ansible and makes it easier to understand and troubleshoot.

logo

It's another recursive acronym and features simplicity as a core principle.

About ara

ara provides Ansible reporting by recording ansible and ansible-playbook commands wherever and however they are run:

  • from a terminal, by hand or from a script
  • from a laptop, desktop, server, VM or container
  • for development, CI or production
  • from most Linux distributions and even on Mac OS (as long as python >= 3.6 is available)
  • from tools that run playbooks such as AWX & Automation Controller (Tower), ansible-(pull|test|runner|navigator) and Molecule
  • from CI/CD platforms such as Jenkins, GitHub Actions, GitLab CI, Rundeck and Zuul

getting-started

In addition to the built-in CLI, the data is made available through an included reporting interface as well as a REST API.

ui-web-demo

Note: open the above gifs in a new tab (or window) if the resolution is too small

How it works

ara records results to SQLite, MySQL and PostgreSQL databases with a standard Ansible callback plugin.

The callback plugin leverages built-in python API clients to send data to a REST API server:

recording-workflow

Requirements

  • Any recent Linux distribution or Mac OS with python >=3.6 available
  • The ara package (containing the Ansible plugins) must be installed for the same python interpreter as Ansible itself

Getting started

Running an API server is not required to get started and it is designed to be simple to record data to a local sqlite database.

For production use, it is strongly encouraged to:

Recording playbooks without an API server

# Install ansible (or ansible-core) with ara (including API server dependencies)
python3 -m pip install --user ansible "ara[server]"

# Configure Ansible to use the ara callback plugin
export ANSIBLE_CALLBACK_PLUGINS="$(python3 -m ara.setup.callback_plugins)"

# Run an Ansible playbook as usual
ansible-playbook hello-world.yml

# Use the CLI to see recorded playbooks
ara playbook list

# Start the development server at http://127.0.0.1:8000
# to query the API or browse recorded results
ara-manage runserver

Recording playbooks with an API server

It is possible to get started with the ara_api role or with the container images published by the project on DockerHub and quay.io:

# Create a directory for a volume to store settings and a sqlite database
mkdir -p ~/.ara/server

# Start an API server with docker from the image on DockerHub:
docker run --name api-server --detach --tty \
  --volume ~/.ara/server:/opt/ara -p 8000:8000 \
  docker.io/recordsansible/ara-api:latest

# or with podman from the image on quay.io:
podman run --name api-server --detach --tty \
  --volume ~/.ara/server:/opt/ara -p 8000:8000 \
  quay.io/recordsansible/ara-api:latest

Once the server is running, ara's Ansible callback plugin must be installed and configured to send data to it:

# Install ansible (or ansible-core) with ara (excluding API server dependencies)
python3 -m pip install --user ansible ara

# Configure Ansible to use the ara callback plugin
export ANSIBLE_CALLBACK_PLUGINS="$(python3 -m ara.setup.callback_plugins)"

# Set up the ara callback to know where the API server is located
export ARA_API_CLIENT="http"
export ARA_API_SERVER="http://127.0.0.1:8000"

# Run an Ansible playbook as usual
ansible-playbook playbook.yaml

# Use the CLI to see recorded playbooks
ara playbook list

# Browse http://127.0.0.1:8000 (running from the container)
# to view the reporting interface

Data will be available on the API server in real time as the playbook progresses and completes.

Live demo

A live demo is deployed with the ara Ansible collection from Ansible Galaxy.

It is available at https://demo.recordsansible.org.

Documentation and changelog

Documentation for installing, configuring, running and using ara is available on ara.readthedocs.io.

Common issues may be resolved by reading the troubleshooting guide.

Changelog and release notes are available within the repository's git tags as well as the documentation.

Community and getting help

Contributing

Contributions to the project are welcome and appreciated !

Get started with the contributor's documentation.

Authors

Code contributions to the project can be viewed from the git log or on GitHub.

The ara parrot logo was designed and contributed by Jason E. Rist.

Copyright

Copyright (c) 2022 The ARA Records Ansible authors

ARA Records Ansible is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

ARA Records Ansible is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with ARA Records Ansible.  If not, see <http://www.gnu.org/licenses/>.

More Repositories

1

awesome-ansible

Awesome Ansible List
1,324
star
2

ansible-bender

ansible-playbook + buildah = a sweet container image
Python
665
star
3

ansible-consul

📡 Ansible role for Hashicorp Consul clusters
Jinja
433
star
4

ansible-vault

🔑 Ansible role for Hashicorp Vault
Jinja
346
star
5

ansible-nomad

⌚ Ansible role for Nomad
Jinja
283
star
6

molecule-vagrant

🚧 Moved to molecule-plugins
Python
143
star
7

ansible-build-data

Holds generated but persistent results from building the ansible community package
Python
114
star
8

toolset

❌ Deprecated, superseded by creator-ee container.
Dockerfile
106
star
9

molecule-plugins

Collection on molecule plugins
Python
88
star
10

molecule-docker

🚧 Assimilated into molecule-plugins
Python
77
star
11

antsibull

Tooling for building various things related to ansible
Python
59
star
12

molecule-podman

❗️Moved into molecule-plugins
Python
53
star
13

molecule-ec2

🚧 Migrated inside molecule-plugins
Python
51
star
14

ara-web

Stateless web client for the ARA Records Ansible API.
JavaScript
38
star
15

contrib-scripts

(archived) Old Ansible inventory & vault scripts
Python
37
star
16

antsibull-changelog

Changelog generator for ansible, ansible-base, and collections.
Python
36
star
17

molecule-libvirt

Molecule LibVirt Provider
Python
35
star
18

community-topics

Discussions for Ansible Meetings
Shell
34
star
19

ansible.content_builder

A collection to scaffold Ansible plugins.
Python
31
star
20

ansible-london-meetup

Ansible Meetup for London, UK
30
star
21

ara-collection

Collection of Ansible roles for ARA Records Ansible.
Jinja
28
star
22

molecule-hetznercloud

A molecule driver for Hetzner Cloud
Python
27
star
23

pytest-molecule

Please switch to pytest-ansible
Python
24
star
24

protogen

(Archived) Protogen :: Sample on how to write maintainable Ansible content
Makefile
22
star
25

antsibull-docs

Tooling for building Ansible documentation
Python
22
star
26

ansible-test-gh-action

A composite GitHub Action encapsulating the GitHub Actions CI/CD workflows setup necessary for testing Ansible collection repositories on GitHub
Python
20
star
27

collection_migration

DONE AND DONE: Was scripts and scenarios for migration from core code to collections
Python
19
star
28

molecule-lxd

❗️Archived due to lack of maintenance, see molecule-plugins discussions
Python
19
star
29

molecule-openstack

Molecule OpenStack Driver
Python
15
star
30

sphinx_ansible_theme

A reusable Ansible Sphinx Theme
CSS
14
star
31

molecule-vmware

Molecule VMware Driver
Python
14
star
32

community-website

Ansible Community website (WIP)
Python
14
star
33

molecule-inspec

Molecule Inspec Verifier Plugin
Python
13
star
34

molecule-kubevirt

Molecule Kubevirt Driver
Python
13
star
35

ppa

Python
12
star
36

molecule-goss

Molecule Goss Verifier
Python
12
star
37

molecule-containers

❗️Migrated into molecule-plugins
Python
12
star
38

images

Ansible container image definitions meant for ansible-test and Execution Environments
Shell
12
star
39

role2collection

Tooling to assist in migrating to collections
Python
11
star
40

pytest-ansible-units

A pytest plugin to run an ansible collection's unit tests with pytest.
Python
11
star
41

molecule-gce

🚧 Assimilated into molecule-plugins
Python
10
star
42

ansible-dresden-meetup

Ansible Dresden Meetup, located in Dresden, Germany.
CSS
10
star
43

github-docs-build

GitHub actions and workflows for building Ansible collection documentation.
Jinja
8
star
44

operator-sdk-performance-testing

Performance testing for the Kubernetes Operator SDK.
HTML
8
star
45

molecule-azure

🚧 Assimilated into molecule-plugins
Python
7
star
46

antsibull-core

Library for tooling for building various things related to ansible
Python
6
star
47

ansible-benelux-meetup

Content of the Ansible Benelux Meetup Group
Ruby
6
star
48

antsibull-docs-parser

Python library for processing Ansible documentation markup
Python
6
star
49

collection-explorer

TypeScript
5
star
50

ansible-badges

Ansible Badges will recognize contributors to the Ansible Project.
5
star
51

collection_bot

Fork of Ansibullbot for collections
Python
5
star
52

ansible-pygments

Provides Pygments highlighter for Ansible output for use in Sphinx
Python
5
star
53

molecule-digitalocean

molecule-digitalocean
Python
5
star
54

antsichaut

Antsichaut aims to automate the filling of a changelog.yaml used by antsibull-changelog
Python
4
star
55

sphinx-ansible

Python
4
star
56

ara-infra

Infrastructure management for the ARA Records Ansible project.
HTML
4
star
57

community-examples

Repository for community examples
4
star
58

stats-crawler

Primary indexer for the raw data used in the other stats reports and dashboards
R
4
star
59

project-template

A GitHub repository template for new Ansible projects
3
star
60

rss-feed-aggregator

Jinja
3
star
61

ansible-zurich-meetup

Ansible Zurich Meetup
3
star
62

katacoda-scenarios

Ansible Community training
Shell
3
star
63

galaxy-doc-builder

TypeScript
2
star
64

ansible-minneapolis-meetup

2
star
65

ansible-munich-meetup

A repository to share content for the Ansible München Meetup group.
2
star
66

antsibull-docs-ts

TypeScript library for processing Ansible documentation markup
TypeScript
2
star
67

meetup

The regular Ansible Community Meetup
1
star
68

nightly-builds

Nightly builds of ansible package. Usage: `pip install ansible ansible-base --index-url=https://ansible-community.github.io/nightly-builds/simple/ --extra-index-url=https://pypi.org/simple`
HTML
1
star
69

stats-collections

RShiny app to display statistics for the Ansible Collections
R
1
star
70

ansible-seattle-meetup

Seattle Ansible Meetup content and ideas
1
star
71

github-action-build-collection

GitHub Action for building Ansible collections
1
star
72

ansible.im

Hacking on HTML for ansible.im
HTML
1
star
73

presentations

Repository for community presentations on Ansible projects
1
star
74

ansible-montreal-meetup

Things for the Ansible Montreal meetups
1
star
75

ansible-stl-meetup

Ansible St. Louis Meetup content.
1
star
76

ansible-kolkata-meetup

A repository to share content for the Ansible Kolkata Meetup group.
HTML
1
star
77

package-test-results

Coordination for Ansible package-wide testing
Python
1
star