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

19 lines
700 B
YAML
Raw Normal View History

2018-10-31 07:12:14 +00:00
- name: Does /opt/nextcloud/version.php exist?
stat:
path: "{{ nextcloud_prefix }}/nextcloud/version.php"
2017-05-29 22:02:55 +00:00
register: nextcloud_page
2018-10-29 09:00:07 +00:00
- 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)
2020-01-07 17:24:38 +00:00
- name: Provision Nextcloud's MySQL DB, run Nextcloud's install wizard, etc
include_tasks: setup.yml
when: nextcloud_install and not installing
2017-05-29 22:02:55 +00:00
2020-01-07 17:24:38 +00:00
- name: Enable or disable Nextcloud
include_tasks: enable.yml
when: nextcloud_install or nextcloud_installed is defined