# end\_play is stopping the loop execution

**URL:** <https://forum.ansible.com/t/end-play-is-stopping-the-loop-execution/37087>\
**Category:** Ansible Project\
**Created:** [September 12, 2022, 7:54am UTC](https://forum.ansible.com/t/end-play-is-stopping-the-loop-execution/37087 "2022-09-12T07:54:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![PRADEEPA\_G](https://avatars.discourse-cdn.com/v4/letter/p/48db29/32.png) [@PRADEEPA\_G](https://forum.ansible.com/u/PRADEEPA_G)\
**Post date:** [September 12, 2022, 7:54am UTC](https://forum.ansible.com/t/end-play-is-stopping-the-loop-execution/37087/1 "2022-09-12T07:54:57Z")

</div>

Have the task with the loop to execute multiple sql files. but need to stop the execution of playbook using tag only after execution all the sql files. in reality the end\_play is ending immediately after execution one sql file.

" dlf\_validation\_sql\_script " is a variable that provides the loop of multiple sql files to execute.

how can we keep the execution of task DLF validation until it complete the loop?
