aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2020-07-13 19:58:49 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2020-07-13 19:58:49 +0200
commit46aac4cc7909b2ad0faf6f0822b15c405e30ef22 (patch)
tree0896d4fe40c4ff5a91656fbaa5ec9c6d5be468fd
parent4bd4d20533aad60bbc267a9aff22c8cdb2e9154d (diff)
downloadinfrastructure-46aac4cc7909b2ad0faf6f0822b15c405e30ef22.tar.gz
infrastructure-46aac4cc7909b2ad0faf6f0822b15c405e30ef22.zip
Add SSH
-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