How to implement ignore error result if output contains something in ansible?
<p>I have an ansible task that sometimes can fail and I want to ignore its failure if, and only if, the output contains a specific text.</p>

<p>Logic sounds like: if result code != 0 and "xxx" in output succeed, else fail.</p>