2020-11-23 16:25:40 +01:00
|
|
|
---
|
|
|
|
- name: Add or update Apache2 site
|
|
|
|
template:
|
|
|
|
src: templates/apache-docker-proxy-site.j2
|
2020-12-12 23:10:42 +01:00
|
|
|
dest: /etc/apache2/sites-available/{{ site_name }}.conf
|
2022-10-28 21:15:50 +02:00
|
|
|
mode: "0644"
|
2020-11-23 16:25:40 +01:00
|
|
|
notify: restart apache2
|
|
|
|
|
|
|
|
- name: Activate Apache2 site
|
2020-12-12 23:10:42 +01:00
|
|
|
command: a2ensite {{ site_name }}
|
2020-11-23 16:25:40 +01:00
|
|
|
args:
|
|
|
|
creates: /etc/apache2/sites-enabled/{{ site_name }}.conf
|
|
|
|
notify: restart apache2
|