1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 19:52:06 +00:00
iiab/roles/nextcloud/tasks/main.yml

18 lines
676 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
include_tasks: setup.yml
when: nextcloud_install and not installing
- name: Enables or disable Nextcloud!
include_tasks: enable_or_disable.yml
when: nextcloud_install or nextcloud_installed is defined