# Problem with retry file.

**URL:** <https://forum.ansible.com/t/problem-with-retry-file/19540>\
**Category:** Ansible Project\
**Created:** [October 18, 2015, 8:28pm UTC](https://forum.ansible.com/t/problem-with-retry-file/19540 "2015-10-18T20:28:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vadim](https://avatars.discourse-cdn.com/v4/letter/v/50afbb/32.png) [@Vadim](https://forum.ansible.com/u/Vadim)\
**Post date:** [October 18, 2015, 8:28pm UTC](https://forum.ansible.com/t/problem-with-retry-file/19540/1 "2015-10-18T20:28:54Z")

</div>

Hi. a have a problem with “retry” file.

Failed (unreachable) hosts adds to retry file.

Then I run command like this:

“ansible-playbook test.yml --limit @/home/user/ansible/.ansible-retry/test.retry”

Later host from retry file is reachable and playbook completes successfully, but record of the host does not removes from retry file.

Because I use cron to works with retry file, hosts from retry file reconfigured in the loop.

If I simple run “ansible-playbook test.yml” and all hosts reachable and reconfigured successful the retry anyway contains ip of early failed hosts.

Its bug or I do something wrong?

I need to automatic removing successfully reconfigured hosts from retry file.

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [October 19, 2015, 5:32pm UTC](https://forum.ansible.com/t/problem-with-retry-file/19540/2 "2015-10-19T17:32:36Z")

</div>

Its 'how it works' right now retry file ONLY gets written when  
something breaks during a run. You can open a github issue and ask for  
a new feature to remove the file on successful runs, but this might be  
an issue for people that have multiple plays with the same name.
