Ansible Role keepalived
This role installs and configures keepalived.
Mandatory Role Variables
Variable |
Description |
---|---|
|
The email addresses for notifications. |
|
The password for the communication between the MASTER and BACKUP instances. Only the first eight (8) characters are used. |
|
Determines whether to be the MASTER or BACKUP. |
|
The IP address to be shared between the MASTER and BACKUP. |
Example:
# mandatory
keepalived__notification_email_addresses:
- 'root@example.com'
keepalived__password: 'linuxfabrik'
keepalived__state: 'MASTER'
keepalived__virtual_ipaddress: '192.0.2.1'
Optional Role Variables
Variable |
Description |
Default Value |
---|---|---|
|
The vrrp instance id keepalived should use. |
|
|
The network interface keepalived should use. |
|
|
The email address keepalived should use the sender address for email notifications. |
|
|
The SMTP server keepalived should use in order to send email notifications. |
|
|
The virtual router id. |
|
Example:
# optional
keepalived__interface: 'eth'
keepalived__notification_email_from: 'root@server.loc'
keepalived__smtp_server: 'smtp.example.com'