2014-12-12 20:04:37 +00:00
|
|
|
- name: Set up all the haproxy stuff.
|
2015-02-21 22:28:28 +00:00
|
|
|
hosts: proxies-stg:proxies
|
2014-12-12 20:04:37 +00:00
|
|
|
user: root
|
|
|
|
gather_facts: True
|
|
|
|
|
|
|
|
vars_files:
|
|
|
|
- /srv/web/infra/ansible/vars/global.yml
|
2015-01-09 22:59:18 +00:00
|
|
|
- "/srv/private/ansible/vars.yml"
|
2014-12-12 20:04:37 +00:00
|
|
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
|
|
|
|
|
|
|
handlers:
|
|
|
|
- include: "{{ handlers }}/restart_services.yml"
|
|
|
|
|
|
|
|
roles:
|
|
|
|
|
2015-01-06 19:35:07 +00:00
|
|
|
# The base haproxy role that sets it all up
|
|
|
|
- role: haproxy
|
|
|
|
|
|
|
|
# And an additional apache rewrite so we can access the web stats
|
2014-12-12 20:04:37 +00:00
|
|
|
- role: haproxy/rewrite
|
|
|
|
website: admin.fedoraproject.org
|
|
|
|
path: /haproxy
|