# Cron module question / request

**URL:** <https://forum.ansible.com/t/cron-module-question-request/13745>\
**Category:** Ansible Project\
**Created:** [October 22, 2013, 4:42pm UTC](https://forum.ansible.com/t/cron-module-question-request/13745 "2013-10-22T16:42:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dale\_Campbell](https://avatars.discourse-cdn.com/v4/letter/d/e79b87/32.png) [@Dale\_Campbell](https://forum.ansible.com/u/Dale_Campbell)\
**Post date:** [October 22, 2013, 4:42pm UTC](https://forum.ansible.com/t/cron-module-question-request/13745/1 "2013-10-22T16:42:58Z")

</div>

Hello All,

I am writing a playbook for one of pure staging servers and I need to add 5 cron jobs. However for the first two I need to add them commented, Is there a way to accomplish this with ansible currently? Maybe something like state=disable, We would like to manage the crons from ansible, but not have to completely remove them when we don’t want them running (state=absent). Right now the work around I am using is is adding a pound to the start of the cron command (job=#/tmp/command.sh) but it would be much cleaner to have the entire job commented out. Any help is assistance is appreciated.

Thanks

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [October 23, 2013, 6:37pm UTC](https://forum.ansible.com/t/cron-module-question-request/13745/2 "2013-10-23T18:37:07Z")

</div>

I would probably suggest templating the cron file instead centrally, or using cron.d in this case, versus the cron module.
