forked from Netz39_Admin/netz39-infra-ansible
13 lines
339 B
YAML
13 lines
339 B
YAML
|
---
|
||
|
- name: Add or update Apache2 site
|
||
|
template:
|
||
|
src: templates/apache-dehydrated.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
|