On 24.05.16 16:12 Meher Garda wrote:

> fatal: [localhost] => Failed to template {{stime}}: Failed to template 
> {{lookup('pipe','date +%Y-%m-%dT%H:%M:%SZ -d '+{{ scheduletime }}+'')}}: 
> template error while templating string: expected token ':', got '}'

Try escaping the single quotes and the colons.

Maybe run the task without using the variable, and just put a sample
value after the ...-d '+... Maybe you might need to quote that value
or escape it somehow. Finding out is easier without using a variable.

Johannes


-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/5745ABD1.6050204%40ojkastl.de.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to