cron job variable gets split up

I’m trying to make a task that takes a dict of cronjobs, passes the dict through dictsort so that it is a list, the goes through that list via “with_items” to add each cronjob. For some reason, the job= variable gets screwed up. It comes through as a full string in the debug message, but gets split up in the cron module call.

You can see the vars, tasks, and output here: http://pastebin.com/2EqaeNb9 Any thoughts?

Sorry for the bad subject and description, I couldn’t think of anything better…

Looks like you should quote the job parameter

job={{ foo }}

becomes

job=“{{ foo }}”

Thanks! That worked.

Also had to add:

name=“{{ item[1].name }}”

to the cron task.