diff --git a/library/centos/roles/firewalld/tasks/firewalld_rules.yml b/library/centos/roles/firewalld/tasks/firewalld_rules.yml index 38236dcd..6e0ba7dc 100644 --- a/library/centos/roles/firewalld/tasks/firewalld_rules.yml +++ b/library/centos/roles/firewalld/tasks/firewalld_rules.yml @@ -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