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,24 @@
vrrp_track_process track_process {
process "{{ keepalived_process_tracker }}"
weight 100
}
vrrp_instance rpis_vip {
state BACKUP
interface {{ keepalived_nic }}
virtual_router_id 1{{ ansible_hostname[-2] }}
priority 10
advert_int 1
authentication {
auth_type PASS
auth_pass {{ keepalived_auth_pass }}
}
virtual_ipaddress {
{{ keepalived_vip }}
}
track_process {
track_process
}
}