https://github.com/mach1el/ansible_init_keepalived
Ansible role to initialize keepalived configuration
https://github.com/mach1el/ansible_init_keepalived
ansible keepalived keepalived-ansible keepalived-role
Last synced: 10 months ago
JSON representation
Ansible role to initialize keepalived configuration
- Host: GitHub
- URL: https://github.com/mach1el/ansible_init_keepalived
- Owner: mach1el
- License: mit
- Created: 2022-09-11T11:36:07.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-09-11T14:26:01.000Z (almost 4 years ago)
- Last Synced: 2025-01-10T22:44:14.784Z (over 1 year ago)
- Topics: ansible, keepalived, keepalived-ansible, keepalived-role
- Language: Jinja
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ansible initialize Keepalived
 
Ansible role for initialize keepalived configuration,as default it won't enable keepalived on systemd,this role using to generate configuration for docker container [mich43/keepalived](https://github.com/mach1el/docker-keepalived)
## Role tree
```
.
├── defaults
│ └── main.yml
├── files
│ └── 99-non-local-bind.conf
├── handlers
│ └── main.yml
├── LICENSE
├── meta
│ └── main.yml
├── README.md
├── tasks
│ ├── add_configuration_file.yml
│ ├── binding_nonlocal_ip.yml
│ ├── install_packages.yml
│ └── main.yml
├── templates
│ ├── keepalived.conf.j2
│ └── node.sh.j2
└── vars
└── main.yml
```
## Default variables
```
tcp: true
check_service: true
disable_keepalived: true
KA_MASTER: "10.10.92.170"
KA_BACKUP: "10.10.92.171"
KA_SV_PORT_CHECK: 80
KA_IFACE: "ens192"
KA_ROUTE_ID: "51"
KA_VIP: "10.10.92.250/24"
```
* `tcp`: If true it will check *TCP* port service else it will be *UDP*
* `check_service`: Tell keepalived to use script
* `KA_*`: Variables for keepalived configuration
## Playbook
```
---
- name: Init keepalived on MASTER and BACKUP
hosts: all
roles:
- 'mach1el.ansible_init_keepalived'
```