diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2020-07-13 19:58:49 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2020-07-13 19:58:49 +0200 |
commit | 46aac4cc7909b2ad0faf6f0822b15c405e30ef22 (patch) | |
tree | 0896d4fe40c4ff5a91656fbaa5ec9c6d5be468fd /ansible/roles/network/templates | |
parent | 4bd4d20533aad60bbc267a9aff22c8cdb2e9154d (diff) | |
download | infrastructure-46aac4cc7909b2ad0faf6f0822b15c405e30ef22.tar.gz infrastructure-46aac4cc7909b2ad0faf6f0822b15c405e30ef22.zip |
Add SSH
Diffstat (limited to 'ansible/roles/network/templates')
-rw-r--r-- | ansible/roles/network/templates/rules.v4.j2 | 1 |
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 |