Fix accidentally overwriting crons

This commit is contained in:
Salt 2024-12-07 12:22:46 -06:00
parent f323cd8987
commit 190a88e57c

View File

@ -15,15 +15,21 @@
- /data/nextcloud/data:/var/www/html/data
- /data/shared:/shared
tags: [ docker, nextcloud ]
# Vanilla Nextcloud cron
- name: assure nextcloud cron cronjob
ansible.builtin.cron: user=root name=nextcloud minute=*/5 job="docker exec --user www-data nextcloud php -f /var/www/html/cron.php"
tags: [ docker, nextcloud, cron ]
# Plugin crons
- name: assure nextcloud preview generator cronjob
ansible.builtin.cron: user=root name=nextcloud-preview-generator hour=1 minute=10 job="docker exec --user www-data nextcloud php occ preview:pre-generate"
tags: [ docker, nextcloud, cron ]
# Maintenance tasks
- name: assure nextcloud update cronjob
ansible.builtin.cron: user=root name=nextcloud-update minute=*/30 job="docker exec --user www-data nextcloud php occ app:update --all"
tags: [ docker, nextcloud, cron ]
- name: assure nextcloud db indices cronjob
ansible.builtin.cron: user=root name=nextcloud-update hour=1 job="docker exec --user www-data nextcloud php occ db:add-missing-indices"
ansible.builtin.cron: user=root name=nextcloud-update-db-inidices hour=1 job="docker exec --user www-data nextcloud php occ db:add-missing-indices"
tags: [ docker, nextcloud, cron ]
- name: assure nextcloud expensive migration cronjob
ansible.builtin.cron: user=root name=nextcloud-update hour=1 minute=30 job="docker exec --user www-data nextcloud php occ db:add-missing-indices"
ansible.builtin.cron: user=root name=nextcloud-update-expensive-migration hour=1 minute=30 job="docker exec --user www-data nextcloud php occ db:add-missing-indices"
tags: [ docker, nextcloud, cron ]