ansible-role-nextcloud/tasks/version.yml

19 lines
517 B
YAML
Raw Normal View History

---
- name: "version: {{ instance.domain }}: Prüfe NC-Installation"
stat:
path: "{{ nextcloud_install_path }}/version.php"
register: nc_is_installed
check_mode: false
2021-06-26 02:32:29 +02:00
changed_when: false
- name: "version: {{ instance.domain }}: Prüfe NC-Version"
shell:
2021-10-13 13:54:38 +02:00
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
2021-06-26 02:32:29 +02:00
changed_when: false