DNM: Test iptables_rules on Suse

Related to

https://logs.opendev.org/98/667698/9/gate/zuul-jobs-test-multinode-roles-opensuse-15/b9a73d4/job-output.txt.gz

TASK [persistent-firewall : Persist ipv4 rules]
2019-08-08 06:54:10.282981 | primary | ERROR
2019-08-08 06:54:10.287128 | primary | {
2019-08-08 06:54:10.287293 | primary |   "msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'stdout'\n\nThe error appears to be in '/var/lib/zuul/builds/b9a73d430bc943129724cc67387234ed/untrusted/project_0/opendev.org/zuul/zuul-jobs/roles/persistent-firewall/tasks/persist/Suse.yaml': line 1, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Persist ipv4 rules\n  ^ here\n"

Change-Id: Ia17d412089948f610c07472aa026d491392ab390
This commit is contained in:
Sorin Sbarnea 2019-08-08 09:27:58 +01:00
parent 4a1ecf50a5
commit 8c3d2dc1bf
2 changed files with 5 additions and 1 deletions

View File

@ -13,7 +13,7 @@
register: ip6tables_rules
- name: Configure persistent iptables rules
include: "{{ item }}"
include_tasks: "{{ item }}"
static: no
with_first_found:
- "persist/{{ ansible_distribution }}_{{ ansible_distribution_release }}.yaml"

View File

@ -1,3 +1,7 @@
- name: Show iptables_rules
debug:
var: iptables_rules
- name: Persist ipv4 rules
become: yes
copy: