network: Write keepalived interface status to file

This commit is contained in:
Timo Makinen 2025-04-05 18:48:16 +00:00
parent d6cc79dcb3
commit 043104f062
4 changed files with 60 additions and 1 deletions

View file

@ -1,7 +1,7 @@
! {{ ansible_managed }}
global_defs {
script_user keepalived
}
{% for vip in network_vip_interfaces %}
@ -18,5 +18,6 @@ vrrp_instance VI_{{ vip.vhid }} {
virtual_ipaddress {
{{ vip.ipaddr }}
}
notify /usr/local/libexec/keepalived-notify
}
{% endfor %}