Ansible role for installing and configuring KeepaliveD
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Simon Cornet 55d0f9c63b
All checks were successful
ci/woodpecker/push/linting Pipeline was successful
fix: exclude only sops yml files from lint
2026-07-14 16:23:44 +02:00
.woodpecker chore(package): update cr.simoncor.net/dockerhub/davidanson/markdownlint-cli2 docker tag to v0.23.0 2026-07-01 07:32:19 +00:00
defaults feat: initial commit 2025-07-14 16:30:11 +02:00
handlers chore: migrate bare ansible_* facts to ansible_facts[] syntax 2026-05-19 09:19:04 +02:00
meta feat: initial commit 2025-07-14 16:30:11 +02:00
roles ci: migrate from gitlab ci to woodpecker 2026-05-15 14:31:01 +02:00
tasks chore: migrate bare ansible_* facts to ansible_facts[] syntax 2026-05-19 09:19:04 +02:00
templates fix: keepalived config 2026-03-06 07:56:24 +01:00
.ansible-lint fix: exclude only sops yml files from lint 2026-07-14 16:23:44 +02:00
.editorconfig chore: add .editorconfig and .gitattributes 2026-05-27 14:23:49 +02:00
.gitattributes chore: add .editorconfig and .gitattributes 2026-05-27 14:23:49 +02:00
.gitignore feat: initial commit 2025-07-14 16:30:11 +02:00
.markdownlint-cli2.jsonc ci: migrate from gitlab ci to woodpecker 2026-05-15 14:31:01 +02:00
.sops.yaml fix: correct sops regex to ya?ml 2026-07-14 16:01:51 +02:00
.yamllint chore: exclude .yml files from lint configs 2026-07-14 16:17:28 +02:00
AGENTS.md chore: add AGENTS.md for opencode agents 2026-02-16 10:06:22 +01:00
ansible.cfg chore: sync linting and config files from common 2026-07-14 11:33:15 +02:00
playbook.yaml feat: implement new role layout 2025-11-01 13:10:04 +01:00
readme.md ci: migrate from gitlab ci to woodpecker 2026-05-15 14:31:01 +02:00
renovate.json feat: initial commit 2025-07-14 16:30:11 +02:00

Ansible Role: Keepalived

Install and configure Keepalived for VRRP high availability.

Variables

Variable Required Default Description
keepalived_auth_pass Yes SuperSecurePassword VRRP authentication password
keepalived_chk_service Yes --------------------- Service name to check for health
keepalived_id Yes --------------------- Keepalived instance identifier
keepalived_interface Yes eth0 Network interface for VRRP
keepalived_priority Yes 101 VRRP priority (higher = master)
keepalived_state Yes MASTER Initial state (MASTER/BACKUP)
keepalived_unicast_peer Yes --------------------- Peer IP address for unicast VRRP
keepalived_unicast_src_ip Yes --------------------- Source IP address for unicast VRRP
keepalived_virtual_ipaddress Yes --------------------- Virtual IP address to manage
keepalived_virtual_ipaddress_interface Yes eth0 Interface for virtual IP
keepalived_vr_id Yes 1 VRRP virtual router ID
keepalived_vrrp_instance Yes VI_01 VRRP instance name

Example

keepalived_auth_pass: "SecurePassword123"
keepalived_chk_service: "nginx"
keepalived_id: "web01"
keepalived_interface: "eth0"
keepalived_priority: "100"
keepalived_state: "BACKUP"
keepalived_unicast_peer: "192.168.1.11"
keepalived_unicast_src_ip: "192.168.1.10"
keepalived_virtual_ipaddress: "192.168.1.100"
keepalived_virtual_ipaddress_interface: "eth0"
keepalived_vr_id: "51"
keepalived_vrrp_instance: "VI_WEB"