Merge "use zj_log_file instead of item as loop_var"

This commit is contained in:
Zuul 2020-05-05 21:20:36 +00:00 committed by Gerrit Code Review
commit 6f19965a6a

View File

@ -112,10 +112,12 @@
# gzip will however return 1 if any compressed file is encountered, so we # gzip will however return 1 if any compressed file is encountered, so we
# must ignore that (there's no specific error code). # must ignore that (there's no specific error code).
- name: Archive everything from logs - name: Archive everything from logs
shell: gzip --recursive --best {{ item.path }} || true shell: gzip --recursive --best {{ zj_log_file.path }} || true
args: args:
chdir: "{{ stage_dir }}/logs" chdir: "{{ stage_dir }}/logs"
with_items: "{{ log_files_to_compress.files }}" with_items: "{{ log_files_to_compress.files }}"
loop_control:
loop_var: zj_log_file
tags: tags:
- skip_ansible_lint - skip_ansible_lint
when: when: