25 lines
943 B
YAML
25 lines
943 B
YAML
#SPDX-License-Identifier: MIT-0
|
|
---
|
|
# tasks file for installing Nextcloud plugins/apps
|
|
|
|
- name: Install Nextcloud apps
|
|
ansible.builtin.shell:
|
|
cmd: docker compose exec -T nextcloud php /var/www/html/occ app:install {{ item }}
|
|
chdir: "{{ nextcloud_docker_compose_dir }}"
|
|
loop: "{{ nextcloud_apps_to_install }}"
|
|
register: app_install_result
|
|
changed_when: "'installed' in app_install_result.stdout"
|
|
failed_when:
|
|
- app_install_result.rc != 0
|
|
- "'already installed' not in app_install_result.stdout"
|
|
|
|
- name: Enable Nextcloud apps
|
|
ansible.builtin.shell:
|
|
cmd: docker compose exec -T nextcloud php /var/www/html/occ app:enable {{ item }}
|
|
chdir: "{{ nextcloud_docker_compose_dir }}"
|
|
loop: "{{ nextcloud_apps_to_install }}"
|
|
register: app_enable_result
|
|
changed_when: "'enabled' in app_enable_result.stdout"
|
|
failed_when:
|
|
- app_enable_result.rc != 0
|
|
- "'already enabled' not in app_enable_result.stdout"
|