Menu

We gave our collection booking cron job a clearer name in Ansible and every depot got two drivers the next morning
📰

We gave our collection booking cron job a clearer name in Ansible and every depot got two drivers the next morning

DEV Community: ansible·Sergey Shinder·4 days ago
#wTBSPK1g
#devtoansible#devto#dev#ansible#collections
Long article (417 words) — no AI summary yet.
Reading 0:00
15s threshold

Every evening a script on one of our Linux servers books the next day's collections with our parcel carrier, one for each of our fourteen depots. It has run from cron for years, and since last spring the entry has been managed by Ansible's cron module, with the name book collections and a schedule of half past six.

In October a colleague tidied the role. He renamed the entry to book carrier collections for all depots and moved it to a quarter past six, so the booking would reach the carrier well before their cut off. The pull request showed one task changing, the playbook ran green, and the next morning two drivers arrived at every depot. The carrier charged us for fourteen failed collections, and the depots spent the morning explaining to the second driver that there was nothing for him.

The cron module does not recognise a job by its command or its schedule.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.