# any\_errors\_fatal is not working as expected with block/rescue

**URL:** <https://forum.ansible.com/t/any-errors-fatal-is-not-working-as-expected-with-block-rescue/29098>\
**Category:** Ansible Project\
**Created:** [November 22, 2018, 7:21pm UTC](https://forum.ansible.com/t/any-errors-fatal-is-not-working-as-expected-with-block-rescue/29098 "2018-11-22T19:21:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![karim\_okasha](https://avatars.discourse-cdn.com/v4/letter/k/a87d85/32.png) [@karim\_okasha](https://forum.ansible.com/u/karim_okasha)\
**Post date:** [November 22, 2018, 7:21pm UTC](https://forum.ansible.com/t/any-errors-fatal-is-not-working-as-expected-with-block-rescue/29098/1 "2018-11-22T19:21:56Z")

</div>

the option “any\_errors\_fatal” on a block level should (if a single node fails) have all nodes to fail and then execute “rescue” in all nodes.

However, as per my testing I can see that that the rescue block is only executed on the failed node only not in all nodes. I think that the proper behaviour should be that the resuce block is executed on all the nodes in order to implement a rollback behaviour.

This issue has been raised before as per this thread and i should be working since ansible 2.0 but with Ansible 2.7 that i am testing with this is not happening.

The playbook and output is as shown below

**inventroy:**

h1 ansible\_connection=local  
h2 ansible\_connection=local  
h3 ansible\_connection=local  
h4 ansible\_connection=local  
h5 ansible\_connection=local

**Playbook:**
