[This](https://coderwall.com/p/ww4dxw/ansible-retry-task) is a good tutorial on how to enable retries.