From 056d0f22f9d4b0e9cfd1e50b3312db5be0b73f00 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Mon, 18 Aug 2014 16:05:44 +0000 Subject: [PATCH] The Internet seems to think I should do this. --- roles/base/templates/iptables/iptables | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/base/templates/iptables/iptables b/roles/base/templates/iptables/iptables index 7b995743ab..6f4752ae64 100644 --- a/roles/base/templates/iptables/iptables +++ b/roles/base/templates/iptables/iptables @@ -33,7 +33,7 @@ # ban staging from non-staging hosts {% if env != 'staging' %} {% for host in groups['staging'] %} --A INPUT -s {{ hostvars[host]['eth0_ip'] }} -j REJECT --reject-with icmp-host-prohibited +-A INPUT -s {{ hostvars[host]['ansible_eth0']['ipv4']['address'] }} -j REJECT --reject-with icmp-host-prohibited {% endfor %} {% endif %}