Files
fedora-infra_ansible/roles/httpd/reverseproxy/tasks/main.yml
Patrick Uiterwijk c0b7382df2 Allow to keep the host header through a setting
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2016-03-10 22:07:34 +00:00

25 lines
575 B
YAML

# Expected vars
# - website...
# - localpath..
# - remotepath..
# - proxyurl
# - rewrite
# - keephost
- name: Copy in ProxyPassReverse for {{destname}} ({{website}}{{remotepath}})
template: >
src={{item}}
dest=/etc/httpd/conf.d/{{website}}/{{destname}}.conf
owner=root
group=root
mode=0644
with_first_found:
- "{{roles}}/httpd/reverseproxy/templates/reversepassproxy.{{destname}}.conf"
- "{{roles}}/httpd/reverseproxy/templates/reversepassproxy.conf"
notify:
- reload httpd
tags:
- httpd
- httpd/reverseproxy
- httpd/reversepassproxy