mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 03:32:12 +00:00
Create nextcloud/tasks/apache.yml
This commit is contained in:
parent
f897b4dce1
commit
ce44f9c58c
1 changed files with 12 additions and 0 deletions
12
roles/nextcloud/tasks/apache.yml
Normal file
12
roles/nextcloud/tasks/apache.yml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
- name: Enable http://box{{ nextcloud_url }} via Apache # http://box/nextcloud
|
||||||
|
command: a2ensite nextcloud.conf
|
||||||
|
when: nextcloud_enabled
|
||||||
|
|
||||||
|
- name: Disable http://box{{ nextcloud_url }} via Apache # http://box/nextcloud
|
||||||
|
command: a2dissite nextcloud.conf
|
||||||
|
when: not nextcloud_enabled
|
||||||
|
|
||||||
|
- name: Restart '{{ apache_service }}' systemd service
|
||||||
|
systemd:
|
||||||
|
name: "{{ apache_service }}" # apache2 or httpd, as set in /opt/iiab/iiab/vars/<OS>.yml
|
||||||
|
state: restarted
|
Loading…
Reference in a new issue