From d1676ed5381365bc005409359d1efe6a60fa0487 Mon Sep 17 00:00:00 2001 From: ace Date: Wed, 30 Aug 2023 14:12:31 +0300 Subject: [PATCH] keepalived: fix masked service for debian os family --- tasks/main.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index ac30bed..0ff9fca 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,4 +1,10 @@ --- +- name: Mask Keepalived before install for Debian OS family + ansible.builtin.systemd: + name: keepalived + masked: yes + when: ansible_facts['os_family'] == 'Debian' + - name: Install keepalived package: name: keepalived @@ -32,4 +38,5 @@ state: started enabled: yes daemon_reload: yes + masked: no register: keepalived_enable_and_start