[EVO] Ajouter la source de l'unicast
This commit is contained in:
parent
0efc0c6887
commit
193e93b2f6
@ -35,4 +35,5 @@
|
|||||||
group: root
|
group: root
|
||||||
mode: u=rw,g=r,o=r
|
mode: u=rw,g=r,o=r
|
||||||
validate: /usr/sbin/visudo -cf %s
|
validate: /usr/sbin/visudo -cf %s
|
||||||
|
when: 'keepalived/sudoers' is file
|
||||||
become: true
|
become: true
|
||||||
|
@ -41,6 +41,7 @@ vrrp_instance VIP_{{ keepalived_uid }} {
|
|||||||
advert_int 1
|
advert_int 1
|
||||||
|
|
||||||
{% if keepalived_peers | length > 0 %}
|
{% if keepalived_peers | length > 0 %}
|
||||||
|
unicast_src_ip {{ ansible_facts[keepalived_interface]['ipv4']['address'] }}
|
||||||
unicast_peer {
|
unicast_peer {
|
||||||
{% for peer in keepalived_peers %}
|
{% for peer in keepalived_peers %}
|
||||||
{% if peer != ansible_facts[keepalived_interface]['ipv4']['address'] %}
|
{% if peer != ansible_facts[keepalived_interface]['ipv4']['address'] %}
|
||||||
|
Loading…
Reference in New Issue
Block a user