# cron module issues

**URL:** <https://forum.ansible.com/t/cron-module-issues/19582>\
**Category:** Ansible Project\
**Created:** [October 21, 2015, 7:18pm UTC](https://forum.ansible.com/t/cron-module-issues/19582 "2015-10-21T19:18:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Erik\_Anderson](https://avatars.discourse-cdn.com/v4/letter/e/71c47a/32.png) [@Erik\_Anderson](https://forum.ansible.com/u/Erik_Anderson)\
**Post date:** [October 21, 2015, 7:18pm UTC](https://forum.ansible.com/t/cron-module-issues/19582/1 "2015-10-21T19:18:34Z")

</div>

Hello,

I'm using ansible 1.9.3, and I running into a problem getting the cron  
module to work properly.

Here's what I have:

- name: deploy cron job  
&nbsp;&nbsp;cron: job = "/path/to/script" minute = "10" hour = "22" backup = "yes"  
&nbsp;&nbsp;tags: tagname

When I run this play, I get the following:

TASK: [tagname | deploy cron job] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
fatal: [hostname] =\> a duplicate parameter was found in the argument string ()

As far as I can tell, I'm using the correct syntax.

Am I missing something stupid?

Thanks,  
Erik

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [October 22, 2015, 2:41am UTC](https://forum.ansible.com/t/cron-module-issues/19582/2 "2015-10-22T02:41:00Z")

</div>

loose the spaces around the =

---

<div class="post-metadata">

**Author:** ![Vikas\_Kumar](https://avatars.discourse-cdn.com/v4/letter/v/ecb155/32.png) [@Vikas\_Kumar](https://forum.ansible.com/u/Vikas_Kumar)\
**Post date:** [October 22, 2015, 3:03am UTC](https://forum.ansible.com/t/cron-module-issues/19582/3 "2015-10-22T03:03:22Z")

</div>

Please see the examples [here](http://docs.ansible.com/ansible/cron_module.html). There are extra spaces in your code.
