|
|
|
@ -99,6 +99,16 @@
|
|
|
|
|
not (nextcloud_apps_install_results.rc == 1 and 'already installed' in nextcloud_apps_install_results.stdout)
|
|
|
|
|
loop: "{{ enabled_apps_list }}"
|
|
|
|
|
|
|
|
|
|
- name: Disable some Nextcloud apps
|
|
|
|
|
become_user: "{{ system_user }}"
|
|
|
|
|
command: "/usr/bin/php occ app:disable {{ item | quote }}"
|
|
|
|
|
args:
|
|
|
|
|
chdir: "{{ nextcloud_installation_directory }}"
|
|
|
|
|
register: nextcloud_apps_install_results
|
|
|
|
|
changed_when: "'No such app enabled: ' not in nextcloud_apps_install_results.stdout"
|
|
|
|
|
failed_when: nextcloud_apps_install_results.rc != 0
|
|
|
|
|
loop: "{{ disabled_apps_list }}"
|
|
|
|
|
|
|
|
|
|
- name: Add background cron job
|
|
|
|
|
cron:
|
|
|
|
|
name: "nextcloud cron for {{ domain }}"
|
|
|
|
|