Support for backend options is added to support arbitrary haproxy options like http-check or tcp-check Change-Id: I0a5761c14e0bf27ac36d4f27522fbb756bb70950 Related-To: #1681695
20 lines
605 B
YAML
20 lines
605 B
YAML
- name: Install haproxy
|
|
hosts: haproxy
|
|
user: root
|
|
roles:
|
|
- { role: "haproxy_server", tags: [ "haproxy-server" ] }
|
|
vars:
|
|
haproxy_service_configs:
|
|
- service:
|
|
haproxy_service_name: group_name
|
|
haproxy_backend_nodes: "{{ groups['group_name'][0] }}"
|
|
haproxy_backup_nodes: "{{ groups['group_name'][1:] }}"
|
|
haproxy_port: 80
|
|
haproxy_balance_type: http
|
|
haproxy_backend_options:
|
|
- "forwardfor"
|
|
- "httpchk"
|
|
- "httplog"
|
|
haproxy_backend_aguments:
|
|
- 'http-check expect string OK'
|