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/main.yml

18 lines
700 B
YAML

- name: Does /opt/nextcloud/version.php exist?
stat:
path: "{{ nextcloud_prefix }}/nextcloud/version.php"
register: nextcloud_page
- name: FORCE INSTALL OR REINSTALL OR UPGRADE IF {{ nextcloud_prefix }}/nextcloud/version.php DOESN'T EXIST
#set_fact:
# nextcloud_force_install: True
include_tasks: install.yml
when: nextcloud_install and (not nextcloud_installed is defined or not nextcloud_page.stat.exists)
- name: Provision Nextcloud's MySQL DB, run Nextcloud's install wizard, etc
include_tasks: setup.yml
when: nextcloud_install and not installing
- name: Enable or disable Nextcloud
include_tasks: enable.yml
when: nextcloud_install or nextcloud_installed is defined