
In order to reduce divergance with ansible-lint rules, we apply auto-fixing of violations. In current patch we replace all kind of truthy variables with `true` or `false` values to align with recommendations along with alignment of used quotes. Change-Id: I4a3107ce91b0eed15f3ab9aea4a1e6c4f967d0e0
22 lines
574 B
YAML
22 lines
574 B
YAML
---
|
|
- name: Install haproxy
|
|
hosts: haproxy
|
|
user: root
|
|
roles:
|
|
- role: haproxy_server
|
|
tags:
|
|
- haproxy-server
|
|
vars:
|
|
haproxy_service_configs:
|
|
- 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_arguments:
|
|
- "http-check expect string OK"
|