Merge "Add option to leave tar.gz logs files and flat log"

This commit is contained in:
Jenkins 2017-02-07 19:47:44 +00:00 committed by Gerrit Code Review
commit 097a93a9cd
2 changed files with 3 additions and 2 deletions

View File

@ -33,6 +33,7 @@ artcl_collect_list:
- /tmp/tripleoclient*
artcl_collect_dir: "{{ lookup('env', 'PWD') }}/collected_files"
artcl_gzip_only: true
artcl_tar_gz: false
## publishing related vars
artcl_publish: false

View File

@ -189,7 +189,7 @@
shell: >
chdir=/tmp
tar czf {{ inventory_hostname }}.tar.gz {{ inventory_hostname }};
when: not artcl_gzip_only|bool
when: artcl_tar_gz|bool
- name: gzip logs individually and tar them
shell: >
@ -204,7 +204,7 @@
dest: "{{ artcl_collect_dir }}/{{ inventory_hostname }}.tar.gz"
flat: yes
validate_checksum: no
when: not artcl_gzip_only|bool
when: artcl_tar_gz|bool
- name: Fetch log archive (tar)
fetch: