If you are getting timeout error while executing dry-run or actual deployment like following that means ansible is taking a long time to gather facts from managed hosts.
Generally, you will get an error like “Timer expired after 10 seconds”.
The solution to solve this issue is to add a gather_timeout parameter to 30 secs in an ansible configuration file. (ansible.cfg). You can try different values of gather_timeout if you are still getting timeout error.
After adding this parameter you will not get issue during Gathering Facts task.
If you do not want to gather facts every time ansible runs then you can use gather_facts = no in ansible.cfg file.