ansible-role-zabbix-agent/tasks/zabbix-agent_firewalld_rule...

15 lines
494 B
YAML
Raw Normal View History

---
- name: Manage the zabbix agent firewalld rules
block:
- name: Manage the zabbix agent firewall services
firewalld:
service: '{{ item.service }}'
zone: '{{ item.zone }}'
permanent: '{{ item.permanent | default(True) }}'
state: '{{ item.state }}'
immediate: True
with_items: '{{ zabbix_agent_firewalld_services }}'
when: firewalld_enabled
tags: [ zabbix', 'zabbix_agent', 'firewall', 'firewalld', 'iptables', 'iptables_rules' ]