# End ansible

**URL:** <https://forum.ansible.com/t/end-ansible/26257>\
**Category:** Ansible Project\
**Created:** [December 12, 2017, 6:05am UTC](https://forum.ansible.com/t/end-ansible/26257 "2017-12-12T06:05:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![venkatesh\_rasipuram](https://avatars.discourse-cdn.com/v4/letter/v/dc4da7/32.png) [@venkatesh\_rasipuram](https://forum.ansible.com/u/venkatesh_rasipuram)\
**Post date:** [December 12, 2017, 6:05am UTC](https://forum.ansible.com/t/end-ansible/26257/1 "2017-12-12T06:05:17Z")

</div>

HI team,

I have my ansible play book. where I am running the yaml scripting sequentially (which mean run one after another host serial -1)

As soon as I find the right host to set, I wanted to exit from the playbook and do not want to continue for further host.

end\_play will end the particular execution but it is moving to another host. what is the command to exit completely from ansible scripting?

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [December 12, 2017, 2:48pm UTC](https://forum.ansible.com/t/end-ansible/26257/2 "2017-12-12T14:48:12Z")

</div>

You have the module meta with end\_play.
