Merge "Add option to leave tar.gz logs files and flat log"
This commit is contained in:
commit
097a93a9cd
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue