mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-12 00:03:17 +02:00
8 lines
314 B
YAML
8 lines
314 B
YAML
---
|
|
- name: Handle Zabbix Agent port
|
|
iptables_raw:
|
|
name: zabbix_agent_port
|
|
state: "{{ (zabbix_agent_src_ip | length > 0) | ternary('present', 'absent') }}"
|
|
rules: "-A INPUT -m state --state NEW -p tcp --dport {{ zabbix_agent_port }} -s {{ zabbix_agent_src_ip | join(',') }} -j ACCEPT"
|
|
tags: zabbix
|