Allow tripleo_firewall to work in check mode

Currently, there is a task that fails in check mode because it tries to
loop over stdout_lines which don't exist when running in check (the
command taks didn't actually run in check, so there is no stdout).

Change-Id: Ic569b15e0b866167c2a7e57dc26591fa8a2f6caa
This commit is contained in:
Emilien Macchi 2020-09-25 09:26:22 -04:00
parent 6b6f4b5fb3
commit 2e6b7c4974
1 changed files with 1 additions and 0 deletions

View File

@ -109,5 +109,6 @@
state: absent
regexp: '^((?!.*comment)(?=.*(ironic-inspector|neutron-)))'
when:
- not ansible_check_mode|bool
- item.find('v=' ~ '^/') == -1
loop: "{{ neutron_rules.stdout_lines }}"