Back to our explicit IP.

This commit is contained in:
Ralph Bean 2014-08-18 16:09:48 +00:00
parent d530e7da49
commit 20344c943b

View file

@ -34,7 +34,7 @@
{% if env != 'staging' %} {% if env != 'staging' %}
{% for host in groups['staging'] %} {% for host in groups['staging'] %}
{% if 'eth0_ip' in hostvars[host] %}# {{ host }} {% if 'eth0_ip' in hostvars[host] %}# {{ host }}
-A INPUT -s {{ hostvars[host]['ansible_eth0']['ipv4']['address'] }} -j REJECT --reject-with icmp-host-prohibited -A INPUT -s {{ hostvars[host]['eth0_ip'] }} -j REJECT --reject-with icmp-host-prohibited
{% else %}# {{ host }} has no 'eth0_ip' listed {% else %}# {{ host }} has no 'eth0_ip' listed
{% endif %} {% endif %}
{% endfor %} {% endfor %}