ansible as infrastructure-wide cron
A discussion last week made me think of the following:
Ansible as a mechanism to provide network/infrastructure-wide cron.
A couple of systems that do major administrative tasks could have a infra-cron file like:
01 04 * * * root run_system_wide_task
0 01 * * Sun root trigger_client_backups
Now, I’m sure lots of you are saying ‘yes, that’s cron, you don’t need another one’ but with ansible you could have an orchestrated cron. A cron that properly says ‘wait for the previous task to finish before you launch this other one’ or a cron that is able to better contingency handling if some of your systems are offline or disconnected.
I don’t have any code for this but I wanted to toss it out as a potentially odd idea that maybe someone would love.