27 lines
553 B
YAML
27 lines
553 B
YAML
|
- name: Install keepalived
|
||
|
import_tasks: keepalived.yml
|
||
|
|
||
|
- name: Create keepalive notify script for systemd services
|
||
|
copy:
|
||
|
dest: /usr/local/bin/
|
||
|
src: keepalive-service
|
||
|
mode: 0755
|
||
|
|
||
|
- name: Configure DHCP relays
|
||
|
template:
|
||
|
dest: "/etc/default/isc-dhcp-relay"
|
||
|
src: isc-dhcp-relay.j2
|
||
|
|
||
|
- name: Set up keepalived
|
||
|
template:
|
||
|
dest: /etc/keepalived/keepalived.conf
|
||
|
src: keepalived.conf.j2
|
||
|
mode: 0600
|
||
|
notify: restart keepalived
|
||
|
|
||
|
- name: Enable keepalived
|
||
|
service:
|
||
|
name: keepalived
|
||
|
enabled: yes
|
||
|
state: started
|