This commit is contained in:
Quentin 2020-07-13 19:58:49 +02:00
parent 4bd4d20533
commit 46aac4cc79

View file

@ -4,6 +4,7 @@
:OUTPUT ACCEPT [0:0]
# Cluster
-A INPUT -p tcp --dport 22 -j ACCEPT
-A INPUT -s 192.168.1.254 -j ACCEPT # router
{% for selected_host in groups['cluster_nodes'] %}
-A INPUT -s {{ hostvars[selected_host]['public_ip'] }} -j ACCEPT