~nka/ansible-role-nextcloud

194a9e0c458f3514cafa7170d9d78da037afec47 — Nicolas KAROLAK 2 months ago bfac490 v1.1.0
add tasks to disable apps
2 files changed, 13 insertions(+), 0 deletions(-)

M defaults/main.yml
M tasks/main.yml
M defaults/main.yml => defaults/main.yml +2 -0
@@ 123,6 123,8 @@ nc_config:

nc_apps: []

nc_disable_apps: []

nc_remove_apps: []

...

M tasks/main.yml => tasks/main.yml +11 -0
@@ 180,6 180,17 @@
    chdir: "{{ nc_app_path }}"
    cmd: php occ app:enable --no-interaction {{ item }}

- name: disable apps
  become: true
  become_user: "{{ nc_user }}"
  ignore_errors: true
  loop: "{{ nc_disable_apps }}"
  register: nc_disable
  changed_when: nc_disable.stdout == "{{ item }} disabled"
  command:
    chdir: "{{ nc_app_path }}"
    cmd: php occ app:disable --no-interaction {{ item }}

- name: remove apps
  become: true
  become_user: "{{ nc_user }}"