ansible-roles/haproxy
David Prevot 61f2096fad Allow more --check runs
Use “when: not ansible_check_mode” or “when <file>.stat.exists or not
ansible_check_mode” in order to provide a meaningful diff if possible.

This is an improvement from the previously reverted commit
1728eaee68.
2022-12-23 16:20:06 +01:00
..
defaults haproxy: add haproxy_allow_ip_nonlocal_bind to set sysctl value 2022-06-22 15:32:10 +02:00
handlers Allow more --check runs 2022-12-23 16:20:06 +01:00
meta Update Galaxy metadata (company, platforms and galaxy_tags) 2021-06-28 15:26:28 +02:00
tasks Allow more --check runs 2022-12-23 16:20:06 +01:00
templates haproxy: Take into account haproxy_stats_path for munin 2022-08-10 10:24:55 +02:00
tests Add some kitchen tests for many roles 2017-05-18 15:16:30 +02:00
vars haproxy: add vars for tls configuration 2018-11-13 11:07:06 +01:00
.kitchen.yml Kitchen: Change base image to evolix/ansible 2017-06-02 08:38:08 -04:00
README.md Haproxy role now handle haproxy installation from backports for Debian Stretch 2018-07-24 12:29:42 +02:00

haproxy

Install HAProxy.

Tasks

Everything is in the tasks/main.yml file.

Available variables

  • haproxy_backports : We can either prefer v1.7 from backports for Debian Jessie or v1.8 for Debian Stretch (default: False)

Configuration templates

The roles compiles a haproxy.cfg file based on templates that are looked up in that order :

  1. {{ playbook_dir}}/templates/haproxy/haproxy.{{ inventory_hostname}}.cfg.j2
  2. {{ playbook_dir}}/templates/haproxy/haproxy.{{ host_group}}.cfg.j2 (NB : host_group is not a core variable, it must be defined in group_vars files.)
  3. {{ playbook_dir}}/templates/haproxy/haproxy.default.cfg.j2

If nothing is found, the role falls back to the template embedded in the role : templates/haproxy.default.cfg.j2