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 %}