From dd8e831379af0f71417141910468efc5da2e4c46 Mon Sep 17 00:00:00 2001 From: Albin Vass Date: Sat, 2 May 2020 15:47:41 +0200 Subject: [PATCH] use zj_log_file instead of item as loop_var Change-Id: Ife5560ad028e293f8bfa71756fe6825c1a3f43ce --- roles/stage-output/tasks/main.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/stage-output/tasks/main.yaml b/roles/stage-output/tasks/main.yaml index 66f59150a..8a8f6a1c5 100644 --- a/roles/stage-output/tasks/main.yaml +++ b/roles/stage-output/tasks/main.yaml @@ -112,10 +112,12 @@ # gzip will however return 1 if any compressed file is encountered, so we # must ignore that (there's no specific error code). - name: Archive everything from logs - shell: gzip --recursive --best {{ item.path }} || true + shell: gzip --recursive --best {{ zj_log_file.path }} || true args: chdir: "{{ stage_dir }}/logs" with_items: "{{ log_files_to_compress.files }}" + loop_control: + loop_var: zj_log_file tags: - skip_ansible_lint when: