From a53a01b70f5d7329aa55785154bb602d57290643 Mon Sep 17 00:00:00 2001 From: Thiago Talma Date: Mon, 18 Jul 2016 11:11:58 -0300 Subject: [PATCH] Update macros.j2 --- templates/etc/dhcp/macros.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/etc/dhcp/macros.j2 b/templates/etc/dhcp/macros.j2 index 3a02a84..d0e9680 100644 --- a/templates/etc/dhcp/macros.j2 +++ b/templates/etc/dhcp/macros.j2 @@ -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 %}