add task to update nextcloud apps

This commit is contained in:
Oli
2025-06-05 22:55:44 +00:00
parent 7de3ae47c6
commit c8bd485677

View File

@@ -20,6 +20,16 @@
creates: "{{ nextcloud_dir }}/apps/{{ item }}" creates: "{{ nextcloud_dir }}/apps/{{ item }}"
loop: "{{ nextcloud_occ_install_app }}" 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 - name: Set configs via occ
become: true become: true
become_user: "{{ webserver_user }}" become_user: "{{ webserver_user }}"