summaryrefslogtreecommitdiffstats
path: root/roles/haproxy/defaults/main.yml
blob: 7ba5bd4854d6e236f4a1fbc5c00c6d0218365984 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
haproxy_frontends:
- name: main
  binds:
  - "*:80"
  default_backend: default

haproxy_backends:
- name: default
  balance: roundrobin
  servers:
  - name: web01
    address: 127.0.0.1:9000
    opts: check

os_firewall_use_firewalld: False
os_firewall_allow:
- service: haproxy stats
  port: "9000/tcp"
- service: haproxy balance
  port: "8443/tcp"