From 7277927ea31ea66f1a3b186423ba59fac2d30d0f Mon Sep 17 00:00:00 2001 From: LUXEY Adrien Date: Tue, 23 Mar 2021 17:05:56 +0100 Subject: WIP: Ansible config updated, everything passed alright --- os/config/roles/network/templates/rules.v4 | 4 ++-- os/config/roles/network/templates/rules.v6 | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/os/config/roles/network/templates/rules.v4 b/os/config/roles/network/templates/rules.v4 index 83f5348..8ccaed7 100644 --- a/os/config/roles/network/templates/rules.v4 +++ b/os/config/roles/network/templates/rules.v4 @@ -7,10 +7,10 @@ -A INPUT -p icmp -j ACCEPT # Administration --A INPUT -p tcp --dport {{ hostvars[selected_host]['ssh_port'] }} -j ACCEPT +-A INPUT -p tcp --dport {{ ssh_port }} -j ACCEPT # Diplonat needs everything open to communicate with IGD with the router --A INPUT -s {{ hostvars[selected_host]['gatewayv4'] }} -j ACCEPT +-A INPUT -s {{ gatewayv4 }} -j ACCEPT # Cluster {% for selected_host in groups['cluster_nodes'] %} diff --git a/os/config/roles/network/templates/rules.v6 b/os/config/roles/network/templates/rules.v6 index eace08e..6977f02 100644 --- a/os/config/roles/network/templates/rules.v6 +++ b/os/config/roles/network/templates/rules.v6 @@ -13,7 +13,7 @@ -A INPUT -p ipv6-icmp -j ACCEPT # Administration --A INPUT -p tcp --dport {{ hostvars[selected_host]['ssh_port'] }} -j ACCEPT +-A INPUT -p tcp --dport {{ ssh_port }} -j ACCEPT # Cluster {% for selected_host in groups['cluster_nodes'] %} -- cgit v1.2.3