mirror of
https://gitea.0xace.cc/ansible-galaxy/keepalived.git
synced 2025-04-05 14:41:56 +00:00
keepalived: fix masked service for debian os family
This commit is contained in:
parent
8fd8b57b95
commit
d1676ed538
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user