# Stop execution on hosts with errors, keep running on hosts where it's fine?

**URL:** <https://forum.ansible.com/t/stop-execution-on-hosts-with-errors-keep-running-on-hosts-where-its-fine/35556>\
**Category:** Ansible Project\
**Created:** [July 28, 2021, 9:22am UTC](https://forum.ansible.com/t/stop-execution-on-hosts-with-errors-keep-running-on-hosts-where-its-fine/35556 "2021-07-28T09:22:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mihail\_T](https://avatars.discourse-cdn.com/v4/letter/m/ad7895/32.png) [@Mihail\_T](https://forum.ansible.com/u/Mihail_T)\
**Post date:** [July 28, 2021, 9:22am UTC](https://forum.ansible.com/t/stop-execution-on-hosts-with-errors-keep-running-on-hosts-where-its-fine/35556/1 "2021-07-28T09:22:03Z")

</div>

Hi. How do I make it so Ansible runs on multiple hosts simultaneously, without waiting for all hosts’ play finish, but allow them to also keep running plays if a task failed on one or several hosts? The idea is to stop playbook execution on hosts that faced errors but in a way that it wouldn’t block other hosts from proceeding with the work after an error occured on hosts with errors.

---

<div class="post-metadata">

**Author:** ![vbotka](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/vbotka/32/359_2.png) [@vbotka](https://forum.ansible.com/u/vbotka)\
**Post date:** [July 28, 2021, 10:43am UTC](https://forum.ansible.com/t/stop-execution-on-hosts-with-errors-keep-running-on-hosts-where-its-fine/35556/2 "2021-07-28T10:43:34Z")

</div>

Try block/rescue

&nbsp;&nbsp;- block:  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- command: "cmd\_that\_may\_fail"  
&nbsp;&nbsp;&nbsp;&nbsp;rescue:  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- meta: end\_host
