1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00
iiab/roles/nextcloud/tasks/apache.yml

13 lines
485 B
YAML
Raw Normal View History

2020-01-29 13:56:48 +00:00
- name: Enable http://box{{ nextcloud_url }} via Apache # http://box/nextcloud
command: a2ensite nextcloud.conf
2020-01-29 14:51:07 +00:00
when: nextcloud_enabled | bool
2020-01-29 13:56:48 +00:00
- name: Disable http://box{{ nextcloud_url }} via Apache # http://box/nextcloud
command: a2dissite nextcloud.conf
when: not nextcloud_enabled
- name: (Re)Start '{{ apache_service }}' systemd service
2020-01-29 13:56:48 +00:00
systemd:
name: "{{ apache_service }}" # apache2 or httpd, as set in /opt/iiab/iiab/vars/<OS>.yml
state: restarted