An ansible role that installs haproxy on rhel/centos/fedora and debian/ubuntu.
haproxy_frontend
:''
- Set frontend specs to HAProxy
example:
haproxy_frontend:
- name: http-in
bind_address: any
bind_port: 80
mode: http
default_backend: servers
haproxy_backend
:''
- Set backend specs to HAProxy
example:
haproxy_backend:
- name: servers
mode: http
balance_method: roundrobin
servers:
- name: server_one
address: 127.0.0.1:8000
-
haproxy_ha_enabled
:'true'
- Enable or disable keepalived with float IP -
keepalived_authentication_pass
:'P@ssw0rd'
- Keepalived password peers
Mit
Documentation generated using: Ansible-autodoc