Update macros.j2

This commit is contained in:
Thiago Talma 2016-07-18 11:11:58 -03:00 committed by GitHub
parent 4a6cb446a0
commit a53a01b70f

View File

@ -175,7 +175,7 @@ host {{ host.hostname }} {
# {{ failover.comment }}
{% endif %}
failover peer "{{ failover.failover }}" {
{% if failover.primary is defined and failover.primary in ansible_all_ipv4_addresses %}
{% if failover.primary is defined and failover.primary in ansible_all_ipv4_addresses|d([]) %}
primary;
mclt {{ failover.mclt|default(3600) }};
{% if failover.primary_fo_addr is defined and failover.primary_fo_addr %}