Install and configure HAproxy ansible role Available for Ubuntu 22.04 LTS
haproxy
├── README.md
├── tasks
│ └── main.yml
├── templates
│ └── haproxy.cfg.j2
└── vars
└── main.yml
openssl
haproxy:
ssl_path: path to ssl certs
key: keyfile name
cert: certfile name
ssl_file: total file (key + cert)
config_path: path to config file
config_file: config file name
config_params: config parameters
- section: parameters section
section_name: given section name
options: options array
- name: option name
value: option value
...
...
(all options are described in HAproxy documentation)
- hosts: proxy_server
roles:
- haproxy