Compare commits
2 Commits
eaee8cd2ae
...
3f2191b59e
Author | SHA1 | Date | |
---|---|---|---|
3f2191b59e | |||
954528bd4d |
@ -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 %}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user