Use a variable to define the nopreempt state.
This commit is contained in:
parent
c06384f77a
commit
d0e257c397
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue