17 lines
416 B
YAML
17 lines
416 B
YAML
|
---
|
||
|
|
||
|
- name: "Get list of current apps"
|
||
|
become: yes
|
||
|
command:
|
||
|
chdir: "{{ compose_dir }}/nextcloud"
|
||
|
cmd: "{{ nextcloud_app_list }}"
|
||
|
register: _apps_installed
|
||
|
changed_when: false
|
||
|
|
||
|
- name: Install apps
|
||
|
become: yes
|
||
|
command:
|
||
|
chdir: "{{ compose_dir }}/nextcloud"
|
||
|
cmd: "{{ nextcloud_app_install + item }}"
|
||
|
with_items: "{{ nextcloud_apps }}"
|
||
|
when: 'item | string not in _apps_installed.stdout'
|