What’s ARA ?
ARA Records Ansible playbooks and makes them easier to understand and troubleshoot.
ARA saves playbook results to a local or remote database by using an Ansible callback plugin and provides an API to integrate this data in tools and interfaces.
The ara project provides ARA’s Ansible roles and plugins, the REST API server as well as simple built-in web interfaces to browse the recorded data.
How does it work ?
ARA Records Ansible playbooks through an Ansible callback plugin.
- ARA is installed and Ansible is configured to use the callback plugin
ansible-playbookcommand is executed
- Ansible triggers the callback plugin for every event (
- The relevant information is retrieved from the Ansible playbook execution context and is sent to the API server
- The API server validates and serializes the data before storing it the configured database backend
- The API server sends a response back to the API client with the results
- The callback plugin returns, ending the callback hook
- Ansible continues running the playbook until it fails or is completed (back to step 2)
Once the data has been saved in the database, it is made available for query by the API and web interfaces.
Here’s how you can get started from scratch with sane defaults with python>=3.6:
# Install ARA and Ansible for the current user python3 -m pip install --user ansible "ara[server]" # Tell Ansible to use the ARA callback plugin export ANSIBLE_CALLBACK_PLUGINS="$(python3 -m ara.setup.callback_plugins)" # Run your playbook ansible-playbook playbook.yml
If nothing went wrong, your playbook data should have been saved in a local
You can take a look at the recorded data by running
and pointing your browser at http://127.0.0.1:8000/.
That’s it !
ARA is free and open source
ARA is free and open source under the GPLv3 license.
The code review and CI infrastructure is hosted by OpenDev.
ARA is tested, stable and production ready
Each new commit to ARA is gated against a series of unit and integration tests against different Linux distributions and versions of Ansible in order to prevent regressions.
ARA is used to record more than a million playbooks a month from the OpenStack community alone.
ARA is offline and decentralized by default
Running Ansible from your laptop ? No problem.
You can browse your ARA reports locally from a sqlite database without ever leaving the comfort of localhost.
Need to aggregate data from multiple locations ? You can run an API server and hook it up to a database engine like PostgreSQL or MySQL.