cron module issues

25 views
Skip to first unread message

Erik Anderson

unread,
Oct 21, 2015, 3:19:04 PM10/21/15
to ansible...@googlegroups.com
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
cron: job = "/path/to/script" minute = "10" hour = "22" backup = "yes"
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

Brian Coca

unread,
Oct 21, 2015, 10:41:05 PM10/21/15
to Ansible Project
loose the spaces around the =
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
> To post to this group, send email to ansible...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CADdM08oN8xnx3LEB1NQOL2x_FPDvYa6u7SG%3D437UKJwjP0h7Rw%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.



--
Brian Coca

Vikas Kumar

unread,
Oct 21, 2015, 11:03:22 PM10/21/15
to Ansible Project
Please see the examples here. There are extra spaces in your code.
Reply all
Reply to author
Forward
0 new messages