ansible/playbooks/include/proxies-haproxy.yml
Kevin Fenzi 0acfaa2a7e Fix handlers, roles, and tasks to be handlers_path, roles_path and tasks_path so as not to conflict with ansible variables.
Fix duplicate definition of become default that was in group_vars/all as well as vars/global.
2017-04-13 15:46:14 +00:00

22 lines
556 B
YAML

- name: Set up all the haproxy stuff.
hosts: proxies-stg:proxies
user: root
gather_facts: True
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "/srv/private/ansible/vars.yml"
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
handlers:
- include: "{{ handlers_path }}/restart_services.yml"
roles:
# The base haproxy role that sets it all up
- role: haproxy
# And an additional apache rewrite so we can access the web stats
- role: haproxy/rewrite
website: admin.fedoraproject.org
path: /haproxy