Add support for ARA

ARA is a helpful tool to visualize previous runs of ansible. By
enabling it and adding it into the logs/ara-report folder, we get to
see the results hosted on logs.o.o.

Change-Id: I8bda0b94228821dc23fe63bc0c9eedc7d4bd9a0e
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2018-04-10 12:58:17 -04:00
parent 528643c0ad
commit d83d4ff315
No known key found for this signature in database
GPG Key ID: 611A80832067AF38
3 changed files with 10 additions and 0 deletions

View File

@ -1,4 +1,5 @@
hacking<0.11,>=0.10
ansible-lint
ara
bashate
sphinx>=1.1.2,!=1.2.0,!=1.3b1,<1.3

View File

@ -5,6 +5,14 @@
chdir: "{{ zuul.project.src_dir }}"
shell: tox -evenv -- ansible-playbook -i inventory/testing/hosts tests/collect-logs.yaml
- name: Ensure ara-report directory exists
file:
path: ~/logs/ara-report
state: directory
- name: Copy ARA database to ara-report directory
shell: cp ~/.ara/ansible.sqlite ~/logs/ara-report
- name: Collect log files
synchronize:
dest: "{{ zuul.executor.log_root }}"

View File

@ -32,6 +32,7 @@ passenv =
SSH_AUTH_SOCK
USER
setenv =
ANSIBLE_CALLBACK_PLUGINS = {envsitepackagesdir}/ara/plugins/callbacks
ANSIBLE_CONFIG = {toxinidir}/tests/ansible.cfg
PYTHONUNBUFFERED = 1