zuul-jobs/roles/emit-ara-html/tasks/main.yaml
David Moreau-Simard 15d24d25f3 Don't create a gzipped folder: recursively gzip ARA contents
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
2017-08-23 16:48:10 -04:00

19 lines
555 B
YAML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

- 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