use register to put the return info into a var, then you can use it to
scan for the match.

On Fri, Jan 8, 2016 at 9:01 AM, Co S <[email protected]> wrote:
> Hi All,
>
> Is there any way to check the check the message error text returned by
> module in msg against some pattern?
>
> I want to skip execution of next task if msg contains "LoadBalancerNotFound"
> string.
>
> TASK: [elb | Wait ELB to deassociate from SG]
> *********************************
> failed: [127.0.0.1] => {"attempts": 0, "failed": true}
> msg: LoadBalancerNotFound: Cannot find Load Balancer test
>
> FATAL: all hosts have already failed -- aborting
>
>
> Thanks,
> Regards
>
> --
> 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/209f9958-e94b-437b-acff-a828171e7c5a%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



-- 
Brian Coca

-- 
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/CAJ5XC8m4Zu-Zo1T0wd8YJ7wPUxgEsuSqTSf61%2BJOjJDLaQYkBQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to