Add role for emitting ara logs on the executor

Change-Id: I7e5270bcf64f9834e40983ff3bdac59f6582d599
This commit is contained in:
Monty Taylor 2017-08-18 15:01:33 -05:00
parent 7779b7caee
commit 1b04947156
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1 @@
Have ara generate html logs if ara and ara data are both present.

View File

@ -0,0 +1,16 @@
- name: Check for ara db
stat:
path: "{{ zuul.executor.work_root }}/.ara/ansible.sqlite"
register: ara_db_stat
- name: Check for ara install
args:
executable: /bin/bash
command: type -p ara
ignore_errors: yes
register: ara_command_type
when: ara_db_stat.stat.exists
- name: Generate ara html output
command: ara generate html "{{ zuul.executor.log_root/ara }}"
when: ara_command_type|succeeded and not ara_command_type|skipped