Files
fedora-infra_ansible/roles/haproxy/rewrite/tasks/main.yml
Rick Elrod daeaae624a make the dir here instead
Signed-off-by: Rick Elrod <relrod@redhat.com>
2018-12-17 18:46:44 +00:00

22 lines
605 B
YAML

- name: Make directory for the config files for {{website}} we are about to copy
file: path=/etc/httpd/conf.d/{{website}} state=directory owner=root group=root mode=0755
tags:
- haproxy
- haproxy/rewrite
- template: src=rewrite.conf dest=/etc/httpd/conf.d/{{website}}/haproxy.conf
notify:
- reload httpd
tags:
- haproxy
- haproxy/rewrite
when: not inventory_hostname.startswith('proxy')
- template: src=rewrite.conf dest=/etc/httpd/conf.d/{{website}}/haproxy.conf
notify:
- reload proxyhttpd
tags:
- haproxy
- haproxy/rewrite
when: inventory_hostname.startswith('proxy')