On 04.04.2019 08:25, Kunalsing Thakur wrote:
Hi Brian,
I have registered results. i am able to access the content using
pulp.results.[0].stdout. if nothing is found stdout prints this
"\e[0m".
And i want to compare this string to failed the task using failed_when
condition.
but somehow it gives me below error.
fatal: [pulp]: FAILED! =>
msg: 'The conditional check ''pulp.results.[0].stdout == "\e[0m"''
failed. The error was: template error while templating string: expected
name or number. String: {% if pulp.results.[0].stdout == "\e[0m" %}
True {%
else %} False {% endif %}'
Sebastian Meyer gave you the answer to this in you other thread, maybe
read that one more carefully?
https://groups.google.com/d/msgid/ansible-project/0749a574-c80b-a765-72c9-928842320e95%40b1-systems.de
--
Kai Stian Olstad
--
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/8469c870271d8c0d3fdd408352d6d971%40olstad.com.
For more options, visit https://groups.google.com/d/optout.