# How to end play in a role based on condition, but keep playing the rest of the roles

**URL:** <https://forum.ansible.com/t/how-to-end-play-in-a-role-based-on-condition-but-keep-playing-the-rest-of-the-roles/36140>\
**Category:** Ansible Developer\
**Created:** [December 21, 2021, 1:07pm UTC](https://forum.ansible.com/t/how-to-end-play-in-a-role-based-on-condition-but-keep-playing-the-rest-of-the-roles/36140 "2021-12-21T13:07:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rijesh\_Puthiya\_Puray](https://avatars.discourse-cdn.com/v4/letter/r/f1d935/32.png) [@Rijesh\_Puthiya\_Puray](https://forum.ansible.com/u/Rijesh_Puthiya_Puray)\
**Post date:** [December 21, 2021, 1:07pm UTC](https://forum.ansible.com/t/how-to-end-play-in-a-role-based-on-condition-but-keep-playing-the-rest-of-the-roles/36140/1 "2021-12-21T13:07:41Z")

</div>

Hello,

I have a playbook that has multiple roles in it. How can I exit from the execution of a role’s task while continuing to play the other roles?The module meta: end\_play just ends the play at the place it is called, which is not the way I wanted.

Thanks,  
Rijesh.
