# Continue the task where it fails in playbook

**URL:** <https://forum.ansible.com/t/continue-the-task-where-it-fails-in-playbook/19648>\
**Category:** Ansible Project\
**Created:** [October 29, 2015, 5:50am UTC](https://forum.ansible.com/t/continue-the-task-where-it-fails-in-playbook/19648 "2015-10-29T05:50:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anandkumar](https://avatars.discourse-cdn.com/v4/letter/a/82dd89/32.png) [@anandkumar](https://forum.ansible.com/u/anandkumar)\
**Post date:** [October 29, 2015, 5:50am UTC](https://forum.ansible.com/t/continue-the-task-where-it-fails-in-playbook/19648/1 "2015-10-29T05:50:45Z")

</div>

I have written the playbook for mail server creation. For that i have written multiple individual yml files and put all those in main.yml.  
so while executing this main.yml suppose it fails any yml file inside main.yml. that is as  
in main.yml consists

- include: 123.yml

- include: 13.yml

- include: 12.yml

- include: 1234.yml

- include: 12345.yml

- include: 123567.yml

while exeuting main.yml if it fails at 12.yml . then while executing again by --limit @/main.retry it start from 123.yml.

so how to continue from where it fails i.e continue from 12.yml while executing main.yml???

Could you please provide me solution how to overcome this problem???

---

<div class="post-metadata">

**Author:** ![Mark\_Janssen](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@Mark\_Janssen](https://forum.ansible.com/u/Mark_Janssen)\
**Post date:** [October 29, 2015, 12:08pm UTC](https://forum.ansible.com/t/continue-the-task-where-it-fails-in-playbook/19648/2 "2015-10-29T12:08:03Z")

</div>

–start-at-task=“task name”
