# How to continue failed playbook on several hosts ?

**URL:** <https://forum.ansible.com/t/how-to-continue-failed-playbook-on-several-hosts/14256>\
**Category:** Ansible Project\
**Created:** [January 3, 2014, 8:18am UTC](https://forum.ansible.com/t/how-to-continue-failed-playbook-on-several-hosts/14256 "2014-01-03T08:18:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![P11](https://avatars.discourse-cdn.com/v4/letter/p/a9adbd/32.png) [@P11](https://forum.ansible.com/u/P11)\
**Post date:** [January 3, 2014, 8:18am UTC](https://forum.ansible.com/t/how-to-continue-failed-playbook-on-several-hosts/14256/1 "2014-01-03T08:18:37Z")

</div>

Hello all,

some time ago I wanted to run quite lengthy playbook on several (over 100 …) nodes. These nodes are not really similar so I wasn’t surprised that on many of them  
this particular playbook failed (to make it worst: it failed on different tasks …). So at the end I was left with several servers with partially run playbook.  
How do you guys cope with it (of course except manual fix …) ? Is there any option in ansible which is similar to: “run this playbook starting with this particular  
tasks on these particular nodes” ?

Best regards

---

<div class="post-metadata">

**Author:** ![Walid](https://avatars.discourse-cdn.com/v4/letter/w/ea5d25/32.png) [@Walid](https://forum.ansible.com/u/Walid)\
**Post date:** [January 3, 2014, 8:50am UTC](https://forum.ansible.com/t/how-to-continue-failed-playbook-on-several-hosts/14256/2 "2014-01-03T08:50:55Z")

</div>

at the end or the run of the playbook reporting you should see a line similar to this

–limit @/playbook/running/dir /playbookname.retry

you can add it to your command line you used to run and that will run on the failed hosts, check your output and check the file referenced their

---

<div class="post-metadata">

**Author:** ![P11](https://avatars.discourse-cdn.com/v4/letter/p/a9adbd/32.png) [@P11](https://forum.ansible.com/u/P11)\
**Post date:** [January 3, 2014, 9:03am UTC](https://forum.ansible.com/t/how-to-continue-failed-playbook-on-several-hosts/14256/3 "2014-01-03T09:03:27Z")

</div>

Last time I checked it was referring just to list of failed hosts.  
In which ansible version this feature was introduced ?

---

<div class="post-metadata">

**Author:** ![Walid](https://avatars.discourse-cdn.com/v4/letter/w/ea5d25/32.png) [@Walid](https://forum.ansible.com/u/Walid)\
**Post date:** [January 3, 2014, 11:30am UTC](https://forum.ansible.com/t/how-to-continue-failed-playbook-on-several-hosts/14256/4 "2014-01-03T11:30:51Z")

</div>

I think after 1.2, as far as i know if a host fails a task it will be added into the file. If you want the new run to start at specific task that is doable by the extra option start at task

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [January 3, 2014, 12:56pm UTC](https://forum.ansible.com/t/how-to-continue-failed-playbook-on-several-hosts/14256/5 "2014-01-03T12:56:32Z")

</div>

Specifically, the file will contain all the failed hosts at the end of the playbook run.

(I wanted to clarify that it did not contain references to hosts from previous playbook runs, failed or otherwise)
