fix syntax error

This commit is contained in:
Kevin Fenzi
2016-10-17 19:57:42 +00:00
parent b462a78248
commit ad51691c60

View File

@@ -68,13 +68,13 @@ COMMIT
# This is a replicating postgresql server, allow db connections from clients
{% for host in groups['postgres-clients']|sort %}
{% if 'eth0_ip' in hostvars[host] %}# {{ host }}
-A INPUT -s { hostvars[host]['eth0_ip'] }} -p tcp -m tcp --dport 5432 -j ACCEPT
-A INPUT -s {{ hostvars[host]['eth0_ip'] }} -p tcp -m tcp --dport 5432 -j ACCEPT
{% else %}# {{ host }} has no 'eth0_ip' listed
{% endif %}
{% endfor %}
{% for host in groups['postgres-clients-stg']|sort %}
{% if 'eth0_ip' in hostvars[host] %}# {{ host }}
-A INPUT -s { hostvars[host]['eth0_ip'] }} -p tcp -m tcp --dport 5432 -j ACCEPT
-A INPUT -s {{ hostvars[host]['eth0_ip'] }} -p tcp -m tcp --dport 5432 -j ACCEPT
{% else %}# {{ host }} has no 'eth0_ip' listed
{% endif %}
{% endfor %}