Avoid connection timeouts: poll > 0
If you want to set a longer timeout limit for a certain task in your playbook, useasyncwithpollset to a positive value. Ansible will still block the next task in your playbook, waiting until the async task either completes, fails or times out. However, the task will only time out if it exceeds the timeout limit you set with theasyncparameter.
To avoid timeouts on a task, specify its maximum runtime and how frequently you would like to poll for status: