Ansible Role for HAProxy.
This role requires Ansible 2.10 or higher.
This role supports:
- Amazon Linux 2023 (haproxy 3.0)
- AlmaLinux 9 (haproxy 2.8)
- AlmaLinux 10 (haproxy 3.0)
See defaults/main.yml for available variables.
-
Dropped CentOS 6 and 7 support
-
Replaced
yummodule withansible.builtin.dnf -
The
reqaddfrontend option has been removed (deprecated in haproxy 2.1+). Usehttp_request_rulesinstead:Before:
haproxy_frontends: - name: web reqadd: - "X-Forwarded-Proto:\\ https"
After:
haproxy_frontends: - name: web http_request_rules: - "add-header X-Forwarded-Proto https"
-
TLS configuration now includes TLSv1.3 ciphersuites (
ssl-default-bind-ciphersuites) -
TLS options use
ssl-min-versyntax instead ofno-tlsv1xflags -
Replaced external haproxy_exporter with native Prometheus exporter (
haproxy_prometheus_enabled,haproxy_prometheus_port)