15d24d25f3
https://review.openstack.org/#/c/495551/ introduced gzipping through the "archive" module but the result isn't the expected one, let's use the gzip command instead. Change-Id: I7d5fe19381ade6639ec4d96b50e58f84439e0230
19 lines
555 B
YAML
19 lines
555 B
YAML
- name: Check for ARA db
|
||
stat:
|
||
path: "{{ zuul.executor.work_root }}/.ara/ansible.sqlite"
|
||
register: ara_db_stat
|
||
|
||
- name: Check for ARA install
|
||
command: which 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
|
||
|
||
- name: Compress ARA html output
|
||
command: gzip --recursive --best {{ zuul.executor.log_root }}/ara
|
||
when: ara_compress_html | bool
|