Basic keepalived Ansible-Playbook

This commit is contained in:
janic
2021-12-17 16:07:30 +01:00
parent 8408c3f9ca
commit d4b61bf31e
12 changed files with 205 additions and 3 deletions

View File

@@ -0,0 +1,19 @@
---
- name: Configure keepalived
template:
src: "keepalived.conf.j2"
dest: /etc/keepalived/keepalived.conf
register: template
- name: Restart keepalive Server
service:
name: keepalived
state: restarted
when: template.changed
- name: Running keepalive Server
service:
name: keepalived
state: started
enabled: yes