From d530e7da490c0330571d4a8c5df3a08cfe6d2698 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Mon, 18 Aug 2014 16:08:56 +0000 Subject: [PATCH] Some comments. --- roles/base/templates/iptables/iptables | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/base/templates/iptables/iptables b/roles/base/templates/iptables/iptables index 6f4752ae64..63aa1d2905 100644 --- a/roles/base/templates/iptables/iptables +++ b/roles/base/templates/iptables/iptables @@ -33,7 +33,10 @@ # ban staging from non-staging hosts {% if env != 'staging' %} {% for host in groups['staging'] %} +{% if 'eth0_ip' in hostvars[host] %}# {{ host }} -A INPUT -s {{ hostvars[host]['ansible_eth0']['ipv4']['address'] }} -j REJECT --reject-with icmp-host-prohibited +{% else %}# {{ host }} has no 'eth0_ip' listed +{% endif %} {% endfor %} {% endif %}