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 %}