Skip to content
This repository was archived by the owner on Nov 21, 2020. It is now read-only.
SimpliFieldPublic archive

About

Ansible role to setup HAProxy

Resources

Stars

1 star

Watchers

2 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HAProxy

Setup HAProxy with splited config files

Requirements

  • Ansible 2.x

Role Variables

haproxy_frontends:
  http_front:
  - bind *:80
  - default_backend http_back
  custom_front:
  - bind *:8081
  - default_backend http_back
haproxy_backends:
  http_back:
  - balance roundrobin
  - server http1 127.0.0.1:8000 check
  - server http2 127.0.0.1:8001 check

Dependencies

All dependencies are bundled in meta/main.yml

Example Playbook

- hosts: haproxy
  vars:
    haproxy_frontends:
      http_front:
      - bind *:80
      - default_backend http_back
    haproxy_backends:
      http_back:
      - balance roundrobin
      - server http1 10.0.0.1:80 check
      - server http2 10.0.0.2:80 check

  roles:
  - role: SimpliField.haproxy

License

BSD

About

Ansible role to setup HAProxy

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages