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