2020-04-19 18:13:27 +02:00
|
|
|
---
|
|
|
|
- name: Manage the zabbix agent firewalld rules
|
|
|
|
block:
|
|
|
|
- name: Manage the zabbix agent firewall services
|
2021-12-03 13:41:44 +01:00
|
|
|
firewalld:
|
|
|
|
service: '{{ item.service }}'
|
|
|
|
zone: '{{ item.zone }}'
|
|
|
|
permanent: '{{ item.permanent | default(True) }}'
|
|
|
|
state: '{{ item.state }}'
|
|
|
|
immediate: True
|
2020-04-19 18:13:27 +02:00
|
|
|
with_items: '{{ zabbix_agent_firewalld_services }}'
|
|
|
|
|
2021-12-03 13:41:44 +01:00
|
|
|
when: firewalld_enabled
|
2020-04-19 18:13:27 +02:00
|
|
|
tags: [ zabbix', 'zabbix_agent', 'firewall', 'firewalld', 'iptables', 'iptables_rules' ]
|