From d0e257c3970f1f8be4f4ecbe3c72e4613a09d069 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Sun, 25 Jul 2021 01:20:50 +0200 Subject: [PATCH] Use a variable to define the nopreempt state. --- defaults/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index 2e7175d..d326e56 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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: