Disable nopreempt by default.

This commit is contained in:
Andrea Dell'Amico 2021-07-25 01:14:28 +02:00
parent 0e57545830
commit c06384f77a
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
2 changed files with 5 additions and 4 deletions

View File

@ -61,7 +61,7 @@ keepalived_instances:
vrouter_id: '{{ keepalived_vrouter_id }}'
notify: '{{ keepalived_notify_script }}'
priority: '{{ keepalived_inst_priority }}'
nopreempt: True
nopreempt: False
v_addr:
- '{{ keepalived_floating_ip1 }}'
track_script:

View File

@ -24,7 +24,8 @@ keepalived_script1_check: '/bin/pidof {{ keepalived_service_to_check }}'
keepalived_instance1_name: 'VRRP_1'
keepalived_interface1_name: '{{ ansible_default_ipv4.interface }}'
keepalived_initial_state: 'MASTER'
keepalived_inst_priority: 100
keepalived_inst_priority: 101
keepalived_script_weight: 2
keepalived_vrouter_id: 51
keepalived_non_local_bind: True
@ -44,7 +45,7 @@ keepalived_scripts:
# In seconds
interval: 2
# Priority increment
weight: 2
weight: '{{ keepalived_script_weight }}'
keepalived_instances:
- name: '{{ keepalived_instance1_name }}'
@ -53,7 +54,7 @@ keepalived_instances:
vrouter_id: '{{ keepalived_vrouter_id }}'
notify: '{{ keepalived_notify_script }}'
priority: '{{ keepalived_inst_priority }}'
nopreempt: True
nopreempt: False
v_addr:
- '{{ keepalived_floating_ip1 }}'
track_script: