Thanks! What I'm not clear on, though, is where that fail would go?  or
what the condition would be . . ?

- hosts: set_b
  roles:
    - bar

- tasks:
  fail: msg='i have failed you'
  when: any tasks for set_b hosts have failed

- hosts: set_c
  roles:
    - baz

On Wed, Oct 21, 2015 at 2:58 PM, Serge van Ginderachter <
[email protected]> wrote:

>
> On 21 October 2015 at 20:44, Guy Matz <[email protected]> wrote:
>
>> At specific points within the roles foo and bar I would like to stop the
>> run if there are failures, most importantly, I do not want set_c to get
>> updated.  Any thoughts are greatly appreciated!
>
>
>
> ​There's the fail module for that, to be combined with a when: conditional.
> ​
>
> --
> 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/CAEhzMJBGJ7JzpXLZuESnjiSF9LLk3hwzboaGAu5gYXOGVhcoNg%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAEhzMJBGJ7JzpXLZuESnjiSF9LLk3hwzboaGAu5gYXOGVhcoNg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CABnTgtWA7oiX7UTL9uZS2eHpA0p3z7ekS-Lt_t-DKFrpbVwoNw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to