Improve CI ansible plays to pass ansible-lint

Change-Id: I150c8952aad7b6fdb1260b343c26a96fb2360bce
This commit is contained in:
Marcin Juszkiewicz 2020-04-17 10:38:00 +02:00 committed by Radosław Piliszek
parent 7f199f9bce
commit f40886f6d2
1 changed files with 4 additions and 2 deletions

View File

@ -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"