From c8bd485677490dd2951c531d5c913f629c4bde44 Mon Sep 17 00:00:00 2001 From: Oli Date: Thu, 5 Jun 2025 22:55:44 +0000 Subject: [PATCH] add task to update nextcloud apps --- roles/nextcloud/tasks/configure.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/roles/nextcloud/tasks/configure.yml b/roles/nextcloud/tasks/configure.yml index 11c6473..0cb8edf 100644 --- a/roles/nextcloud/tasks/configure.yml +++ b/roles/nextcloud/tasks/configure.yml @@ -20,6 +20,16 @@ creates: "{{ nextcloud_dir }}/apps/{{ item }}" loop: "{{ nextcloud_occ_install_app }}" +- name: Update apps + become: true + become_user: "{{ webserver_user }}" + command: + cmd: php occ app:update --all + args: + chdir: "{{ nextcloud_dir }}" + register: nextcloud_apps_update + changed_when: "' updated' in nextcloud_apps_update.stdout" + - name: Set configs via occ become: true become_user: "{{ webserver_user }}"