diff --git a/templates/keepalived.j2 b/templates/keepalived.j2 index a14f075..1e2181b 100644 --- a/templates/keepalived.j2 +++ b/templates/keepalived.j2 @@ -41,6 +41,7 @@ vrrp_instance VIP_{{ keepalived_uid }} { advert_int 1 {% if keepalived_peers | length > 0 %} + unicast_src_ip {{ ansible_facts[keepalived_interface]['ipv4']['address'] }} unicast_peer { {% for peer in keepalived_peers %} {% if peer != ansible_facts[keepalived_interface]['ipv4']['address'] %}