Problem with retry file.

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.

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.