main.yml 354 B

123456789101112131415161718192021
  1. ---
  2. haproxy_frontends:
  3. - name: main
  4. binds:
  5. - "*:80"
  6. default_backend: default
  7. haproxy_backends:
  8. - name: default
  9. balance: roundrobin
  10. servers:
  11. - name: web01
  12. address: 127.0.0.1:9000
  13. opts: check
  14. os_firewall_use_firewalld: False
  15. os_firewall_allow:
  16. - service: haproxy stats
  17. port: "9000/tcp"
  18. - service: haproxy balance
  19. port: "8443/tcp"