Automatic retry failed or unreachable hosts

Hello,

Is there a way of having an automatic retry for the unreachable hosts?
With the retry files we can know which servers didn’t finish the playbook execution, so we can re-run it in the future. But can it be done automatically? Say, this server was down, let’s try again until it is up and the playbook is complete.

Thanks for your help,
David N.