17 lines
620 B
YAML
17 lines
620 B
YAML
|
---
|
||
|
- name: "fixes: Prüfe NC-Version"
|
||
|
shell:
|
||
|
cmd: occ -V | cut -d ' ' -f2
|
||
|
chdir: "{{ nextcloud_install_path }}"
|
||
|
become: true
|
||
|
become_user: "{{ common_name }}"
|
||
|
register: nc_installed_version
|
||
|
|
||
|
- name: "fixes: https://github.com/nextcloud/files_pdfviewer/issues/381"
|
||
|
get_url:
|
||
|
url: https://raw.githubusercontent.com/nextcloud/files_pdfviewer/6d81ffbb65c3758bece144e0aff07b4a0ad20eef/js/files_pdfviewer-main.js
|
||
|
dest: "{{ nextcloud_install_path }}/apps/files_pdfviewer/js/files_pdfviewer-main.js"
|
||
|
owner: "{{ common_name }}"
|
||
|
group: "{{ common_name }}"
|
||
|
when: nc_installed_version >= "21.0.2"
|