diff --git a/library/roles/keepalived/templates/keepalived.conf.j2 b/library/roles/keepalived/templates/keepalived.conf.j2 index e7ce9db7..4e8f85e1 100644 --- a/library/roles/keepalived/templates/keepalived.conf.j2 +++ b/library/roles/keepalived/templates/keepalived.conf.j2 @@ -67,10 +67,10 @@ vrrp_instance {{ instance.name }} { {% endif %} {% if keepalived_use_unicast %} - unicast_src_ip {{ keepalived_unicast_src_ip }} + unicast_src_ip {{ instance.keepalived_unicast_src_ip }} unicast_peer { - {% for ipaddr in keepalived_unicast_peer_ip %} + {% for ipaddr in instance.keepalived_unicast_peer_ip %} {{ ipaddr }} {% endfor %}