Documentation for the collection.
ansible-galaxy collection build
ansible-galaxy collection install laurobmb-haproxy-1.0.5.tar.gz
ansible-galaxy collection install git+https://github.com/laurobmb/ansible_haproxy_collection.git,main
ansible-galaxy collection install laurobmb-haproxy-1.0.5.tar.gz -p collections/
---
- name: Install HAproxy with KeepAlived
hosts: haproxy_groups
vars:
keepalived_virtualip: 10.36.39.200
web_servers:
- 192.168.11.10
- 192.168.11.11
- 192.168.11.12
- 192.168.11.13
tasks:
- name: Import role
ansible.builtin.import_role:
name: laurobmb.haproxy.install_haproxy
- name: Import role
ansible.builtin.import_role:
name: laurobmb.haproxy.install_keepalived