- 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 }}"