# end\_play should not stop the loop in task

**URL:** <https://forum.ansible.com/t/end-play-should-not-stop-the-loop-in-task/37089>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [September 12, 2022, 3:05pm UTC](https://forum.ansible.com/t/end-play-should-not-stop-the-loop-in-task/37089 "2022-09-12T15:05:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [September 12, 2022, 3:05pm UTC](https://forum.ansible.com/t/end-play-should-not-stop-the-loop-in-task/37089/1 "2022-09-12T15:05:17Z")

</div>

First, you are not showing a loop, so i can only assume these tasks  
are in an include\_tasks with the loop defined there.

Second, you are asking Ansible to end the play, if is what is  
happening, it is working as expected.  
I'm not sure why you expect the play to continue after you asked it to end.
