12 lines
384 B
YAML
12 lines
384 B
YAML
|
#!/usr/bin/env ansible-playbook
|
||
|
# vim:ft=ansible:
|
||
|
---
|
||
|
- name: install keepalived
|
||
|
apt: name=keepalived state=present
|
||
|
when: ansible_os_family == 'Debian'
|
||
|
- name: template out config
|
||
|
template: src=keepalived.conf dest=/etc/keepalived/keepalived.conf mode="0640"
|
||
|
notify: restart keepalived
|
||
|
- name: ensure keepalived is running
|
||
|
systemd: name=keepalived state=started enabled=yes
|