keepalived: fix masked service for debian os family

This commit is contained in:
ace 2023-08-30 14:12:31 +03:00
parent 8fd8b57b95
commit d1676ed538
Signed by: ace
GPG Key ID: 2C08973DD37A76FD

View File

@ -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 - name: Install keepalived
package: package:
name: keepalived name: keepalived
@ -32,4 +38,5 @@
state: started state: started
enabled: yes enabled: yes
daemon_reload: yes daemon_reload: yes
masked: no
register: keepalived_enable_and_start register: keepalived_enable_and_start