ansible-roles/keepalived/tasks/main.yml
Tristan PILAT 58f82046cc
All checks were successful
continuous-integration/drone/push Build is passing
Add first version of Keepalived role
2021-02-11 17:32:23 +01:00

19 lines
424 B
YAML

- name: install Keepalived service
apt:
pkg: keepalived
state: present
- name: generate Keepalived configuration
template:
src: keepalived.conf.j2
dest: /etc/keepalived/keepalived.conf
mode: 0644
notify: restart keepalived
- name: enable and restart Keepalived service
systemd:
name: keepalived
daemon_reload: yes
state: started
enabled: yes