From f40886f6d2714887c1b07935fcd54856d44b25a9 Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Fri, 17 Apr 2020 10:38:00 +0200 Subject: [PATCH] Improve CI ansible plays to pass ansible-lint Change-Id: I150c8952aad7b6fdb1260b343c26a96fb2360bce --- tests/post.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/post.yml b/tests/post.yml index 19ccdc9a64..f95e91242a 100644 --- a/tests/post.yml +++ b/tests/post.yml @@ -31,18 +31,20 @@ - name: Download /etc/hosts file to executor synchronize: src: "/etc/hosts" - dest: "{{ zuul.executor.log_root }}/{{inventory_hostname }}/" + dest: "{{ zuul.executor.log_root }}/{{ inventory_hostname }}/" mode: pull ignore_errors: yes - name: dump all iptables rules shell: "iptables-save > /tmp/logs/iptables" + args: + creates: /tmp/logs/iptables become: true - name: Download /tmp/logs file to executor synchronize: src: "/tmp/logs" - dest: "{{ zuul.executor.log_root }}/{{inventory_hostname }}/" + dest: "{{ zuul.executor.log_root }}/{{ inventory_hostname }}/" mode: pull rsync_opts: - "--quiet"