firewall rules only when firewalld is enabled. #14
|
@ -2,7 +2,13 @@
|
||||||
- name: Manage the zabbix agent firewalld rules
|
- name: Manage the zabbix agent firewalld rules
|
||||||
block:
|
block:
|
||||||
- name: Manage the zabbix agent firewall services
|
- name: Manage the zabbix agent firewall services
|
||||||
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: '{{ item.permanent | default(True) }}'
|
||||||
|
state: '{{ item.state }}'
|
||||||
|
immediate: True
|
||||||
with_items: '{{ zabbix_agent_firewalld_services }}'
|
with_items: '{{ zabbix_agent_firewalld_services }}'
|
||||||
|
|
||||||
|
when: firewalld_enabled
|
||||||
tags: [ zabbix', 'zabbix_agent', 'firewall', 'firewalld', 'iptables', 'iptables_rules' ]
|
tags: [ zabbix', 'zabbix_agent', 'firewall', 'firewalld', 'iptables', 'iptables_rules' ]
|
||||||
|
|
Loading…
Reference in New Issue