# Hang issue when use ansible

**URL:** <https://forum.ansible.com/t/hang-issue-when-use-ansible/14804>\
**Category:** Ansible Project\
**Created:** [March 19, 2014, 5:56am UTC](https://forum.ansible.com/t/hang-issue-when-use-ansible/14804 "2014-03-19T05:56:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chunlin\_Zhang](https://avatars.discourse-cdn.com/v4/letter/c/ee7513/32.png) [@Chunlin\_Zhang](https://forum.ansible.com/u/Chunlin_Zhang)\
**Post date:** [March 19, 2014, 5:56am UTC](https://forum.ansible.com/t/hang-issue-when-use-ansible/14804/1 "2014-03-19T05:56:28Z")

</div>

More accurate description of my issue is: that is ssh’s issue.  
Because sometimes I use ssh directly to connect to some linux computer,it also hang.Yes.it just hang,no timeout,no return,I don’t know why,maybe it is something wrong with network.  
If this happen,ansible will hang and no return,I give timeout arg to ansible.runner.Runner and still no return.And I can not find out which computer hang because of no log.

Any suggestion to this issue?  
Thanks.

---

<div class="post-metadata">

**Author:** ![Brian\_Coca1](https://avatars.discourse-cdn.com/v4/letter/b/278dde/32.png) [@Brian\_Coca1](https://forum.ansible.com/u/Brian_Coca1)\
**Post date:** [March 19, 2014, 12:16pm UTC](https://forum.ansible.com/t/hang-issue-when-use-ansible/14804/2 "2014-03-19T12:16:46Z")

</div>

Try setting “UseDNS no” in your target machine’s sshd\_config.

Brian Coca
