made lamp role more generic

This commit is contained in:
2024-12-04 11:11:17 +01:00
parent 8074187173
commit 7f50fbd7e0
6 changed files with 39 additions and 36 deletions

View File

@@ -15,8 +15,8 @@
- name: Add Apache virtualhost for Owncloud
template:
src: "templates/owncloud.dav.conf.j2"
dest: "/etc/apache2/sites-available/owncloud.dav.conf"
src: "templates/{{ site_conf }}.j2"
dest: "/etc/apache2/sites-available/{{ site_conf }}"
owner: root
group: root
mode: 0644
@@ -25,7 +25,7 @@
- name: Enable the ownCloud site.
command: >
a2ensite owncloud.dav
creates=/etc/apache2/sites-enabled/owncloud.dav.conf
creates="/etc/apache2/sites-enabled/{{ site_conf }}"
notify: restart apache
- name: Disable the default site.