Skip to content

Commit

Permalink
Merge pull request #76 from sappor0/fix/custom-apps-fail-on-upgrade
Browse files Browse the repository at this point in the history
Fix broken upgrade process using custom apps
  • Loading branch information
doobry-systemli authored Oct 26, 2023
2 parents 685db12 + 1c15b0f commit c8c9ded
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
3 changes: 1 addition & 2 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ nextcloud_www_alias: yes
nextcloud_www_alias_name: "nextcloud"

# List of Nextcloud (custom) Apps which should be copied from nextcloud/apps/ to
# the instance apps directory. The apps then need to be enabled by also adding
# them to nextcloud_apps.
# the instance apps directory and enabled in nextcloud.
nextcloud_custom_apps: []

# List of Nextcloud Apps to install/enable
Expand Down
13 changes: 13 additions & 0 deletions tasks/nextcloud/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,19 @@
with_items:
- "{{ nextcloud_custom_apps }}"

- name: "Nextcloud configure: enable custom apps"
become: true
become_user: "{{ nextcloud_http_user }}"
nextcloud_app:
name: "{{ item }}"
nextcloud_path: "{{ __nextcloud_install_dir }}"
state: "enabled"
register: __nextcloud_app_installed
retries: 3
delay: 3
until: __nextcloud_app_installed is not failed
with_items: "{{ nextcloud_custom_apps }}"

- name: "Nextcloud configure: get global preferences"
ansible.builtin.command: php occ config:list --private --output=json
args:
Expand Down

0 comments on commit c8c9ded

Please sign in to comment.