Add feature to cron module to support state enable/disable

Currently the cron module supports present/absent to add/delete a cron task. I’d like to add support for enable/disable where disable comments out the line and enable uncomments the line. We move cronjobs throughout our datacenters and I like the idea of the crontask being there just commented out if its in the offline datacenter (rather than entirely removed). I think this fits the paradigm of other ansible modules and my pull request for a win_scheduled_task module supports this functionality. I’m willing to do the work if there is a consensus.

https://github.com/ansible/ansible-modules-core/blob/devel/system/cron.py

I believe you want this:

https://github.com/ansible/ansible-modules-core/pull/878

Thanks, didn’t think to check existing pull requests. I’ll check it out. Just skimming the code, I don’t see a way to uncomment an existing job.