You've already forked role_keepalived
[EVO] Ajouter la gestion de l'unicast
This commit is contained in:
@@ -40,6 +40,16 @@ vrrp_instance VIP_{{ keepalived_uid }} {
|
||||
virtual_router_id {{ keepalived_uid }}
|
||||
advert_int 1
|
||||
|
||||
{% if keepalived_peers | length > 0 %}
|
||||
unicast_peer {
|
||||
{% for peer in keepalived_peers %}
|
||||
{% if peer != ansible_facts[keepalived_interface]['ipv4']['address'] %}
|
||||
{{ peer }}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
}
|
||||
{% endif %}
|
||||
|
||||
{% if keepalived_ipv4 | length > 0 %}
|
||||
virtual_ipaddress {
|
||||
{{ keepalived_ipv4 }} dev {{ keepalived_interface }} scope global
|
||||
|
Reference in New Issue
Block a user