Add role for emitting ara logs on the executor
Change-Id: I7e5270bcf64f9834e40983ff3bdac59f6582d599
This commit is contained in:
parent
7779b7caee
commit
1b04947156
1
roles/emit-ara-html/README.rst
Normal file
1
roles/emit-ara-html/README.rst
Normal file
@ -0,0 +1 @@
|
||||
Have ara generate html logs if ara and ara data are both present.
|
16
roles/emit-ara-html/tasks/main.yaml
Normal file
16
roles/emit-ara-html/tasks/main.yaml
Normal 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
|
Loading…
Reference in New Issue
Block a user