|
|
|
@ -134,7 +134,6 @@
|
|
|
|
|
- oauth2
|
|
|
|
|
- password_policy
|
|
|
|
|
- polls
|
|
|
|
|
- previewgenerator
|
|
|
|
|
- provisioning_api
|
|
|
|
|
- quota_warning
|
|
|
|
|
- serverinfo
|
|
|
|
@ -159,25 +158,12 @@
|
|
|
|
|
- updatenotification
|
|
|
|
|
- workflowengine
|
|
|
|
|
|
|
|
|
|
- name: Set background job mode to cron
|
|
|
|
|
become_user: "{{ system_user }}"
|
|
|
|
|
command: /usr/bin/php occ background:cron
|
|
|
|
|
args:
|
|
|
|
|
chdir: "{{ nextcloud_installation_directory }}"
|
|
|
|
|
|
|
|
|
|
- name: Add background cron job
|
|
|
|
|
cron:
|
|
|
|
|
name: "nextcloud cron for {{ domain }}"
|
|
|
|
|
minute: "*/5"
|
|
|
|
|
job: "sudo -u {{ system_user }} php -f \"{{ nextcloud_installation_directory }}/cron.php\""
|
|
|
|
|
|
|
|
|
|
- name: Add background cron job for preview generation
|
|
|
|
|
cron:
|
|
|
|
|
name: "nextcloud preview cron for {{ domain }}"
|
|
|
|
|
hour: 3
|
|
|
|
|
minute: 0
|
|
|
|
|
job: "sudo -u {{ system_user | quote }} php -f {{ nextcloud_installation_directory | quote }}/occ preview:pre-generate"
|
|
|
|
|
|
|
|
|
|
- name: Configure auto backup of nextcloud data directory
|
|
|
|
|
cron:
|
|
|
|
|
hour: 1
|
|
|
|
|