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

16 lines
513 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_page.stat.exists
# - debug:
# var: nextcloud_force_install
# - debug:
# msg: "nextcloud_force_install: {{ nextcloud_force_install }}"