made lamp role more generic
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user