22 lines
365 B
YAML
22 lines
365 B
YAML
|
---
|
||
|
- name: Install keepalived
|
||
|
apt:
|
||
|
name: keepalived
|
||
|
|
||
|
- name: Configure keepalived
|
||
|
template:
|
||
|
src: keepalived.conf
|
||
|
dest: /etc/keepalived/keepalived.conf
|
||
|
owner: root
|
||
|
group: root
|
||
|
mode: u=rw,g=,o=
|
||
|
notify:
|
||
|
- Reload keepalived
|
||
|
|
||
|
- name: Enable and start keepalived
|
||
|
systemd:
|
||
|
name: keepalived
|
||
|
enabled: true
|
||
|
state: started
|
||
|
...
|