From 6abe78ff461fc5006458f2478fb3cb8fb4a6dae9 Mon Sep 17 00:00:00 2001 From: Cyril Jouve Date: Mon, 12 Mar 2018 19:59:22 +0100 Subject: [PATCH] use archive instead of command --- scripts/collect-info.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/collect-info.yaml b/scripts/collect-info.yaml index 1a0e2307b..14daf9d19 100644 --- a/scripts/collect-info.yaml +++ b/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