How to solve "E405: Remote package tasks should have a retry" in Ansible?
ansible-lint warning 405 can be quite irritating as in certain cases, i.e. when running locally retrying is very unlikely to make any difference.  Actually resolving it is normally simply a case of adding the following:

register: task_result
until: task_result is success
retries: 10
delay: 2


When this is added to task Ansible will retry ten times with a delay of two seconds between each retry until the returncode is 0.