aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ansible/roles/network/templates/rules.v4.j21
1 files changed, 1 insertions, 0 deletions
diff --git a/ansible/roles/network/templates/rules.v4.j2 b/ansible/roles/network/templates/rules.v4.j2
index 9f47ae9..2685b51 100644
--- a/ansible/roles/network/templates/rules.v4.j2
+++ b/ansible/roles/network/templates/rules.v4.j2
@@ -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