7 lines
253 B
Django/Jinja
7 lines
253 B
Django/Jinja
# {{ ansible_managed }}
|
|
|
|
{% for ip in ntp_servers | default([]) %}
|
|
iptables -A INPUT -s {{ ip }} -p udp --dport 123 -m comment --comment "ntp" -j ACCEPT
|
|
iptables -A OUTPUT -d {{ ip }} -p udp --dport 123 -m comment --comment "ntp" -j ACCEPT
|
|
{% endfor %}
|