1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 11:12:06 +00:00

fixes to enable in debian

This commit is contained in:
George Hunt 2017-05-29 20:04:04 -07:00
parent 70c9f95383
commit d4fab95868

View file

@ -13,20 +13,16 @@
mode=0644
when: nextcloud_enabled
- name: For redhat, remove the config file
file: path=/etc/{{ apache_config_dir }}/nextcloud.conf
state=absent
- name: Enable nextcloud
file: path=/etc/apache2/sites-enabled/nextcloud.conf
src=/etc/apache2/sites-available/nextcloud.conf
state=link
when: nextcloud_enabled and is_debuntu
- name: Disable nextcloud
file: path=/etc/apache2/sites-enabled/nextcloud.conf
- name: For redhat, remove the config file
file: path=/etc/{{ apache_config_dir }}/nextcloud.conf
state=absent
when: not nextcloud_enabled and is_debian
when: not nextcloud_enabled and is_redhat
- name: Restart apache, so it picks up the new aliases
service: name={{ apache_service }} state=restarted