From 7cb45ff6e67782b24f923730b991dd3babd7776b Mon Sep 17 00:00:00 2001 From: Guy Godfroy Date: Mon, 20 Jul 2020 17:09:24 +0200 Subject: [PATCH] coding --- defaults/main.yml | 2 +- tasks/main.yml | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index a3c7056..0185db6 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,2 +1,2 @@ --- -# defaults file for openbsd-carp \ No newline at end of file +openbsd_carp_preempt: True diff --git a/tasks/main.yml b/tasks/main.yml index 6d411b8..a1da120 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -7,8 +7,7 @@ - name: Allow CARP preempt sysctl: name: net.inet.carp.preempt - value: '1' - when: openbsd_carp_preempt + value: {{ openbsd_carp_preempt | int }} - name: Configure carp{{ carp.num }} template: