On 22. sep. 2016 20:29, johhue wrote:
<snip>
In this case, the error string I am looking for is "has failures: true"
The string I am looking for has a colon and I cannot for the life of me
escape it.
I have tried single quotes, double quotes, quotes around the whole thing,
quotes only around the colon, backslash.
Quotes around the whole when expression should work.
<snip>
- name: Verify if any errors detected
fail: msg="PUPPET ISSUES"
when: puppet_prompt == "GO" and puppet_execute.stdout.find("has failures: true")
> -1
Have you tied this?
when: 'puppet_prompt == "GO" and puppet_execute.stdout.find("has
failures: true") > -1'
--
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/e8aca6e3-9498-ec89-c523-f72eb177f1fc%40olstad.com.
For more options, visit https://groups.google.com/d/optout.