On 22. sep. 2016 20:29, johhue wrote:
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
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.
- name: Verify if any errors detected
fail: msg="PUPPET ISSUES"
when: puppet_prompt == "GO" and puppet_execute.stdout.find("has failures: true")
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
To unsubscribe from this group and stop receiving emails from it, send an email
To post to this group, send email to email@example.com.
To view this discussion on the web visit
For more options, visit https://groups.google.com/d/optout.