From 46aac4cc7909b2ad0faf6f0822b15c405e30ef22 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Mon, 13 Jul 2020 19:58:49 +0200 Subject: [PATCH] Add SSH --- ansible/roles/network/templates/rules.v4.j2 | 1 + 1 file changed, 1 insertion(+) 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