# Block rescue enquiries when multiple plays.

**URL:** <https://forum.ansible.com/t/block-rescue-enquiries-when-multiple-plays/38842>\
**Category:** Ansible Project\
**Created:** [August 7, 2024, 10:26am UTC](https://forum.ansible.com/t/block-rescue-enquiries-when-multiple-plays/38842 "2024-08-07T10:26:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zhen\_Jian\_Goh](https://avatars.discourse-cdn.com/v4/letter/z/ed655f/32.png) [@Zhen\_Jian\_Goh](https://forum.ansible.com/u/Zhen_Jian_Goh)\
**Post date:** [August 7, 2024, 10:26am UTC](https://forum.ansible.com/t/block-rescue-enquiries-when-multiple-plays/38842/1 "2024-08-07T10:26:46Z")

</div>

When trying to run 2 plays, if first one hit block rescue, why it will stop second play?

- name: Install docker.  
hosts: all  
tasks:

- name: Include prerequisites tasks for RedHat-based OS.  
block:

- name: Include prerequisites tasks.  
ansible.builtin.include\_tasks: “{{ ansible\_distribution }}-{{ ansible\_distribution\_major\_version }}.yml”  
rescue:

- name: Install dependencies.  
ansible.builtin.package:  
name: “{{ docker\_version }}”  
use: dnf  
state: present  
become: true

- name: Other ansible roles.  
hosts: all  
roles:

- role: ansible-role-a

- role: ansible-role-b

- role: ansible-role-c

Scenario above: “Other ansible roles” won’t be executed because it hit rescue in “Install docker.” I thought block rescue were supposed to be used to prevent hitting errors and exit?
