18 lines
517 B
YAML
18 lines
517 B
YAML
---
|
|
- name: "version: {{ instance.domain }}: Prüfe NC-Installation"
|
|
stat:
|
|
path: "{{ nextcloud_install_path }}/version.php"
|
|
register: nc_is_installed
|
|
check_mode: false
|
|
changed_when: false
|
|
|
|
- name: "version: {{ instance.domain }}: Prüfe NC-Version"
|
|
shell:
|
|
cmd: php ./occ -V | awk '{print $NF}'
|
|
chdir: "{{ nextcloud_install_path }}"
|
|
become: true
|
|
become_user: "{{ instance.user }}"
|
|
register: nc_installed_version
|
|
when: nc_is_installed.stat.exists
|
|
check_mode: false
|
|
changed_when: false
|