2021-06-26 01:45:06 +02:00
|
|
|
---
|
|
|
|
- name: "version: {{ instance.domain }}: Prüfe NC-Installation"
|
|
|
|
stat:
|
|
|
|
path: "{{ nextcloud_install_path }}/version.php"
|
|
|
|
register: nc_is_installed
|
2021-06-26 02:32:29 +02:00
|
|
|
changed_when: false
|
2021-06-26 01:45:06 +02:00
|
|
|
|
|
|
|
- name: "version: {{ instance.domain }}: Prüfe NC-Version"
|
|
|
|
shell:
|
2021-06-26 02:32:29 +02:00
|
|
|
cmd: ./occ -V | cut -d ' ' -f2
|
2021-06-26 01:45:06 +02:00
|
|
|
chdir: "{{ nextcloud_install_path }}"
|
|
|
|
become: true
|
|
|
|
become_user: "{{ instance.user }}"
|
|
|
|
register: nc_installed_version
|
|
|
|
when: nc_is_installed.stat.exists
|
2021-06-26 02:32:29 +02:00
|
|
|
changed_when: false
|