Works with centos/redhat and Debian/Ubuntu
Simple VRRP example playbook:
- hosts: keepalived
roles:
- role: ansible-keepalived
global_defs:
notification_email:
- [email protected]
- [email protected]
notification_email_from: '[email protected]'
vrrp_instances:
- name: 'VI_01'
state: 'MASTER'
interface: 'eth0'
virtual_router_id: 10
priority: 100
smtp_alert: True
authentication:
auth_type: 'PASS'
auth_pass: 'secpass'
virtual_ipaddress:
- '192.168.200.17/24 dev eth1'
- '192.168.200.18/24 dev eth2 label eth2:1'