Compare commits

..

2 Commits

Author SHA1 Message Date
3f2191b59e [EVO] Ajouter les scripts de notifications 2023-04-21 17:28:54 +02:00
954528bd4d [EVO] Ajouter la gestion de l'unicast 2023-04-21 17:28:41 +02:00

View File

@ -42,7 +42,11 @@ vrrp_instance VIP_{{ keepalived_uid }} {
{% if keepalived_peers | length > 0 %} {% if keepalived_peers | length > 0 %}
unicast_peer { unicast_peer {
{{ keepalived_peers | join('\n') | indent(width=4) }} {% for peer in keepalived_peers %}
{% if peer != ansible_facts[keepalived_interface]['ipv4']['address'] %}
{{ peer }}
{% endif %}
{% endfor %}
} }
{% endif %} {% endif %}