mirror of https://gitlab.crans.org/bde/nk20
Fix note.cron in ansible
This commit is contained in:
parent
cf4e1f33b4
commit
646c23ccb8
|
@ -30,8 +30,8 @@
|
||||||
group: www-data
|
group: www-data
|
||||||
|
|
||||||
- name: Setup cron jobs
|
- name: Setup cron jobs
|
||||||
file:
|
template:
|
||||||
src: ../note.cron
|
src: note.cron.j2
|
||||||
dest: /etc/cron.d/note
|
dest: /etc/cron.d/note
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
|
|
|
@ -0,0 +1,22 @@
|
||||||
|
# {{ ansible_managed }}
|
||||||
|
# Les cronjobs dont a besoin la Note Kfet
|
||||||
|
|
||||||
|
# m h dom mon dow user command
|
||||||
|
# Envoyer les mails en attente
|
||||||
|
* * * * * root cd /var/www/note_kfet && env/bin/python manage.py send_mail >> /var/www/note_kfet/cron_mail.log
|
||||||
|
* * * * * root cd /var/www/note_kfet && env/bin/python manage.py retry_deferred >> /var/www/note_kfet/cron_mail_deferred.log
|
||||||
|
00 0 * * * root cd /var/www/note_kfet && env/bin/python manage.py purge_mail_log 7 >> /var/www/note_kfet/cron_mail_purge.log
|
||||||
|
# Faire une sauvegarde de la base de données
|
||||||
|
00 2 * * * root cd /var/www/note_kfet && apps/scripts/shell/backup_db
|
||||||
|
# Vérifier la cohérence de la base et mailer en cas de problème
|
||||||
|
00 4 * * * root cd /var/www/note_kfet && env/bin/python manage.py check_consistency --sum-all --check-all --mail
|
||||||
|
# Mettre à jour le wiki (modification sans (dé)validation, activités passées)
|
||||||
|
#30 5 * * * root cd /var/www/note_kfet && env/bin/python manage.py refresh_activities --raw --comment refresh
|
||||||
|
# Spammer les gens en négatif
|
||||||
|
00 5 * * 2 root cd /var/www/note_kfet && env/bin/python manage.py send_mail_to_negative_balances --spam
|
||||||
|
# Envoyer le rapport mensuel aux trésoriers et respos info
|
||||||
|
00 8 6 * * root cd /var/www/note_kfet && env/bin/python manage.py send_mail_to_negative_balances --report
|
||||||
|
# Envoyer les rapports aux gens
|
||||||
|
55 6 * * * root cd /var/www/note_kfet && env/bin/python manage.py send_reports
|
||||||
|
# Envoyer les rapports aux gens
|
||||||
|
00 9 * * * root cd /var/www/note_kfet && env/bin/python manage.py refresh_highlighted_buttons
|
Loading…
Reference in New Issue