Skip to content

Commit

Permalink
explicitly enable custom apps after they were copied
Browse files Browse the repository at this point in the history
  • Loading branch information
sappor0 committed Sep 21, 2023
1 parent f28984d commit 1c15b0f
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 1c15b0f

Please sign in to comment.