ansible/playbooks/include/proxies-haproxy.yml
Ryan Lerch 2cf38c1f17 [yaml-lint] fix yamllint errors and warnings on plabooks
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2024-11-25 19:04:25 +10:00

23 lines
568 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:
- import_tasks: "{{ 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