# What is block's rescue supposed behavior?

**URL:** <https://forum.ansible.com/t/what-is-blocks-rescue-supposed-behavior/21536>\
**Category:** Ansible Project\
**Created:** [May 24, 2016, 10:48am UTC](https://forum.ansible.com/t/what-is-blocks-rescue-supposed-behavior/21536 "2016-05-24T10:48:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Konstantin\_Suvorov](https://avatars.discourse-cdn.com/v4/letter/k/a87d85/32.png) [@Konstantin\_Suvorov](https://forum.ansible.com/u/Konstantin_Suvorov)\
**Post date:** [May 24, 2016, 10:48am UTC](https://forum.ansible.com/t/what-is-blocks-rescue-supposed-behavior/21536/1 "2016-05-24T10:48:06Z")

</div>

Hello.

`

- block:

- fail: msg=fail  
rescue:

- debug: msg=rescue  
always:

- debug: msg=always

- debug: msg=after-block  
`

Seems rescue block bring node back into health state and continue execution of tasks, so after-block debug is executed (tested with ansible 2.1 RC4).  
If I add fail task inside rescue – it will stop execution after always task.

Is it supposed behavior?
