Skip to content

Latest commit

 

History

History
42 lines (34 loc) · 1.07 KB

README.md

File metadata and controls

42 lines (34 loc) · 1.07 KB

haproxy

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

Requirements

openssl

Role Variables

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)

Example Playbook

- hosts: proxy_server
  roles:
     - haproxy