ansible-role-nextcloud/tasks/version.yml

15 lines
424 B
YAML

---
- name: "version: {{ instance.domain }}: Prüfe NC-Installation"
stat:
path: "{{ nextcloud_install_path }}/version.php"
register: nc_is_installed
- name: "version: {{ instance.domain }}: Prüfe NC-Version"
shell:
cmd: occ -V | cut -d ' ' -f2
chdir: "{{ nextcloud_install_path }}"
become: true
become_user: "{{ instance.user }}"
register: nc_installed_version
when: nc_is_installed.stat.exists