Add defaults to the task that associates zones and interfaces.

This commit is contained in:
Andrea Dell'Amico 2019-10-28 17:36:44 +01:00
parent 4b5809f4b1
commit 6bd05fe9cc
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@
with_items: '{{ firewalld_src_rules | default([]) }}' with_items: '{{ firewalld_src_rules | default([]) }}'
- name: Assign interfaces to firewalld zones if needed - 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([]) }}' with_items: '{{ firewalld_zones_interfaces | default([]) }}'
when: when:
- firewalld_zones_interfaces is defined - firewalld_zones_interfaces is defined