keepalived
Keepalived
An Ansible role that installs, configures and manages keepalived for EL 8.
This role will clone the keepalived source code from github.com, and installs the application from source.
Configuration
Set version to install with:
keepalived_version: v2.2.7
Config file:
keepalived_config: /etc/keepalived/keepalived.conf
Since the application is installed from source, the git repository is cloned to the following directory:
keepalived_checkout_path: /var/lib/keepalived/
Set notification emails with:
keepalived_global_defs:
notification_email: []
# - [email protected]
# - [email protected]
# - [email protected]
notification_email_from: ""
smtp_server: ""
smtp_connect_timeout: 10
Interface to attach to:
keepalived_interface: eth0
keepalived_system_ip: "{{ ansible_default_ipv4.address }}"
If you want to specify a certain script:
keepalived_script:
name: something
script: /usr/bin/pgrep service-name
interval: 2
Set the roles and IP's:
keepalived_role: MASTER # or BACKUP
keepalived_vip: 10.0.0.5
Requirements
Given all this, the minimum requirements are:
- At least 2 hosts in play
- Connection to the release file: https://github.com/acassen/keepalived.git
Install
ansible-galaxy install csuka/ansible_role_keepalived
License
apache-2.0
Downloads
18
Owner
Oui oui