added more configuration, but tests failed.
This commit is contained in:
19
roles/owncloud/tasks/cron.yml
Normal file
19
roles/owncloud/tasks/cron.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
- name: Set background job mode to cron.
|
||||
commmand: occ background:cron
|
||||
|
||||
- name: Set the exectution of cron jobs to every 15 min.
|
||||
ansible.builtin.cron:
|
||||
name: "exe cron."
|
||||
minute: "*/15"
|
||||
user: www-data
|
||||
job: "/var/www/owncloud/occ system:cron"
|
||||
state: present
|
||||
|
||||
- name: Cleanup of chunks every night at 2am.
|
||||
ansible.builtin.cron:
|
||||
name: "cleanup chunks."
|
||||
minute: "0"
|
||||
hour: "2"
|
||||
user: www-data
|
||||
job: "/var/www/owncloud/occ dav:cleanup-chunks"
|
||||
state: present
|
||||
Reference in New Issue
Block a user