Yes, please do.

James Cammarata
Director, Ansible Core Engineering
github: jimi-c

On Wed, Jan 20, 2016 at 4:19 AM, Dan C <[email protected]> wrote:

> Hi James,
>
> Yes it seems something is different regarding this on devel branch. But
> either I don't understand what it does or something is not right.
>
> In the current version (2.0.0.0) if I try to use "any_errors_fatal" in a
> block level it fails because this is not an option to be usable on a block.
> With the devel branch this changes. Now I can use this option but it
> doesn't do what I was expecting.
> Now if one of the hosts fails, it make the rest fail and stop executing
> the playbook. But I am not able to have it execute the "rescue" part.
>
>
> - name: deploy
>   hosts: all
>   gather_facts: True
>   tasks:
>   - block:
>       - file: path=/tmp/testfolder1 state=directory
>     rescue:
>       - file: path=/tmp/testfolder2 state=directory
>     any_errors_fatal: yes
>
> In this example, if I make it fail creating "/tmp/testfolder1", it will
> not be creating "/tmp/testfolder2".
>
> Is this the way it is supposed to work? or should I open an issue on
> github?
>
> Thanks!
>
>
>
>
>> --
> 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/7b18bd5b-0bbf-4136-831f-2fa4ca5ef91f%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/7b18bd5b-0bbf-4136-831f-2fa4ca5ef91f%40googlegroups.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/CAMFyvFiiC%3DGCPB1mj%2BobMQHMSYZYFw4j2P07Z9OvFMZW3FFypQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to