Manage Keepalived VIPs with Ansible
Go to file
2021-12-17 16:15:54 +01:00
inventory „inventory/hosts.ini“ ändern 2021-12-17 16:15:54 +01:00
roles Basic keepalived Ansible-Playbook 2021-12-17 16:07:30 +01:00
.gitignore Initial commit 2021-12-10 18:06:59 +01:00
configure.yaml Basic keepalived Ansible-Playbook 2021-12-17 16:07:30 +01:00
LICENSE Basic keepalived Ansible-Playbook 2021-12-17 16:07:30 +01:00
README.md Basic keepalived Ansible-Playbook 2021-12-17 16:07:30 +01:00
remove.yaml Basic keepalived Ansible-Playbook 2021-12-17 16:07:30 +01:00

Setup Keepalived VIP with Ansible

Usage

Every thing you need to setup to configure VIP

Prerequirements

Same Network

The Virtual IP is taking advantage of the vrrp, so the Servers need to reach each other.

SSH-Key

For ansible to work exchange the SSH-Keys from the Ansible Master to the Ansible managed servers.

Configuring your Infrastructure

Just adjust the file ./inventory/hosts.ini, with your hosts and variables.

Installing the Keepalived service

When you have configured everything, just run the Ansible-playbook[configure.yaml].

ansible-playbook -i [Inventory File] configure.yaml

Removing the Keepalived service

When you want to remove the Keepalived service just run the Ansible-playbook[remove.yaml].

ansible-playbook -i [Inventory File] remove.yaml