ansible/roles/keepalived/tasks/main.yml

22 lines
365 B
YAML
Raw Normal View History

2022-01-01 21:45:17 +01:00
---
- 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
...