Browse Source

Merge pull request #2458 from jouve/collect_info

use archive instead of command
pull/2453/merge
Aivars Sterns 6 years ago
committed by GitHub
parent
commit
adc3f79c23
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions
  1. 7
      scripts/collect-info.yaml

7
scripts/collect-info.yaml

@ -114,7 +114,12 @@
with_items: "{{logs}}"
- name: Pack results and logs
local_action: raw GZIP=-9 tar --remove-files -cvzf {{dir|default(".")}}/logs.tar.gz -C /tmp collect-info
archive:
path: "/tmp/collect-info"
dest: "{{ dir|default('.') }}/logs.tar.gz"
remove: true
delegate_to: localhost
become: false
run_once: true
- name: Clean up collected command outputs

Loading…
Cancel
Save