From 361f51e1520494f876f2ca0a4a6fbc17432b3340 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Fri, 25 Oct 2019 19:50:17 +0200 Subject: [PATCH] keepalived: differentiate the unicast ip address between configurations. --- library/roles/keepalived/templates/keepalived.conf.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/roles/keepalived/templates/keepalived.conf.j2 b/library/roles/keepalived/templates/keepalived.conf.j2 index e7ce9db..4e8f85e 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 %}