Manage crontabs using Ansible
We use crontabs to periodically update the database:
- one nightly update of the entire database
- one high-frequency update of the most current competition, every fifteen minutes
Crontabs are a pain to manage. Having them under version control
and provisioned by Ansible should hopefully bring some sanity.
Interestingly, the Toolforge environment heavily hacks the crontab
(overriding the crontab executable) but using Ansible Just Works™.
See docs:
https://docs.ansible.com/ansible/2.7/modules/cron_module.html