ansible/roles/httpd/reverseproxy/tasks/main.yml

24 lines
562 B
YAML
Raw Normal View History

2014-12-08 15:40:15 +00:00
# Expected vars
# - website...
# - localpath..
# - remotepath..
# - proxyurl
# - rewrite
2014-12-08 18:00:39 +00:00
- name: Copy in ProxyPassReverse for {{destname}} ({{website}}{{remotepath}})
2014-12-08 15:40:15 +00:00
template: >
src={{item}}
2014-12-08 15:40:15 +00:00
dest=/etc/httpd/conf.d/{{website}}/{{destname}}.conf
owner=root
group=root
mode=0644
with_first_found:
2014-12-08 19:28:11 +00:00
- "{{roles}}/httpd/reverseproxy/templates/reversepassproxy.{{destname}}.conf"
- "{{roles}}/httpd/reverseproxy/templates/reversepassproxy.conf"
2014-12-08 15:40:15 +00:00
notify:
2015-10-11 19:53:20 +00:00
- reload httpd
2014-12-08 15:40:15 +00:00
tags:
- httpd
2014-12-18 19:17:54 +00:00
- httpd/reverseproxy
2014-12-08 15:40:15 +00:00
- httpd/reversepassproxy