ansible/roles/httpd/reverseproxy/tasks/main.yml
2015-10-11 19:53:20 +00:00

23 lines
562 B
YAML

# Expected vars
# - website...
# - localpath..
# - remotepath..
# - proxyurl
# - rewrite
- 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