Remove the quotation marks. The conditionals are expanded automatically.
> when: "scrtipt_output.rc !=0"
>
...
> The error was: template error while templating string: unexpected char
> u\"'\" at 29
>
Alternatively you might want to use:
when: not scrtipt_output.failed
--
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/0af9fcff-a678-445f-9a37-3bf7113541c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.