Split the firewalld rule, apparently the 'permanent' status is not applied on CentOS 7
This commit is contained in:
parent
b56aeb1fc9
commit
65f793f950
|
@ -31,7 +31,11 @@
|
|||
- name: Manage the squid firewalld rules
|
||||
block:
|
||||
- name: Manage the squid related firewall service
|
||||
firewalld: service={{ item.service }} zone={{ item.zone }} permanent={{ item.permanent | default(True) }} state={{ item.state }} immediate=True
|
||||
firewalld: service={{ item.service }} zone={{ item.zone }} permanent=no state={{ item.state }} immediate=True
|
||||
with_items: '{{ squid_firewalld_services }}'
|
||||
|
||||
- name: Set the status the squid related firewall service
|
||||
firewalld: service={{ item.service }} zone={{ item.zone }} permanent={{ item.permanent | default(True) }} state={{ item.state }}
|
||||
with_items: '{{ squid_firewalld_services }}'
|
||||
|
||||
when: ansible_distribution_file_variety == "RedHat"
|
||||
|
|
Loading…
Reference in New Issue