Use a variable to define the nopreempt state.

This commit is contained in:
Andrea Dell'Amico 2021-07-25 01:20:50 +02:00
parent c06384f77a
commit d0e257c397
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 2 additions and 1 deletions

View File

@ -25,6 +25,7 @@ keepalived_instance1_name: 'VRRP_1'
keepalived_interface1_name: '{{ ansible_default_ipv4.interface }}'
keepalived_initial_state: 'MASTER'
keepalived_inst_priority: 101
keepalived_nopreempt_enabled: False
keepalived_script_weight: 2
keepalived_vrouter_id: 51
keepalived_non_local_bind: True
@ -54,7 +55,7 @@ keepalived_instances:
vrouter_id: '{{ keepalived_vrouter_id }}'
notify: '{{ keepalived_notify_script }}'
priority: '{{ keepalived_inst_priority }}'
nopreempt: False
nopreempt: '{{ keepalived_nopreempt_enabled }}'
v_addr:
- '{{ keepalived_floating_ip1 }}'
track_script: