forked from ISTI-ansible-roles/ansible-roles
Add defaults to the task that associates zones and interfaces.
This commit is contained in:
parent
4b5809f4b1
commit
6bd05fe9cc
|
@ -16,7 +16,7 @@
|
|||
with_items: '{{ firewalld_src_rules | default([]) }}'
|
||||
|
||||
- name: Assign interfaces to firewalld zones if needed
|
||||
firewalld: zone={{ item.zone }} interface={{ item.interface }} permanent={{ item.permanent }} state={{ item.state }} immediate=True
|
||||
firewalld: zone={{ item.zone }} interface={{ item.interface }} permanent={{ item.permanent | default(True) }} state={{ item.state | default('enabled') }} immediate=True
|
||||
with_items: '{{ firewalld_zones_interfaces | default([]) }}'
|
||||
when:
|
||||
- firewalld_zones_interfaces is defined
|
||||
|
|
Loading…
Reference in New Issue