From f41991b63800c5f2a3ed5a051ad9fe2e7f041899 Mon Sep 17 00:00:00 2001 From: phil Date: Sat, 26 Jun 2021 00:51:50 +0200 Subject: [PATCH] Tasks fuer Hotfixes --- tasks/fixes.yml | 16 ++++++++++++++++ tasks/main.yml | 2 ++ 2 files changed, 18 insertions(+) create mode 100644 tasks/fixes.yml diff --git a/tasks/fixes.yml b/tasks/fixes.yml new file mode 100644 index 0000000..8a905f1 --- /dev/null +++ b/tasks/fixes.yml @@ -0,0 +1,16 @@ +--- +- 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" diff --git a/tasks/main.yml b/tasks/main.yml index be573b6..e78dbf8 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -8,3 +8,5 @@ - import_tasks: redis.yml - import_tasks: nextcloud.yml tags: nextcloud +- import_task: fixes.yml + tags: fixes