Add httpd setup and role for docker proxy in Apache2

This commit is contained in:
Stefan Haun 2020-11-23 16:25:40 +01:00
parent 290fc43f54
commit 07c53212a0
4 changed files with 80 additions and 0 deletions
roles/setup-http-site-proxy/tasks

View file

@ -0,0 +1,12 @@
---
- name: Add or update Apache2 site
template:
src: templates/apache-docker-proxy-site.j2
dest: /etc/apache2/sites-available/{{site_name}}.conf
notify: restart apache2
- name: Activate Apache2 site
command: a2ensite {{ site_name}}
args:
creates: /etc/apache2/sites-enabled/{{ site_name }}.conf
notify: restart apache2