# ansible ping hanging on a single node with no errors

**URL:** <https://forum.ansible.com/t/ansible-ping-hanging-on-a-single-node-with-no-errors/24417>\
**Category:** Ansible Project\
**Created:** [May 8, 2017, 8:35am UTC](https://forum.ansible.com/t/ansible-ping-hanging-on-a-single-node-with-no-errors/24417 "2017-05-08T08:35:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Binney](https://avatars.discourse-cdn.com/v4/letter/d/3da27b/32.png) [@David\_Binney](https://forum.ansible.com/u/David_Binney)\
**Post date:** [May 8, 2017, 8:35am UTC](https://forum.ansible.com/t/ansible-ping-hanging-on-a-single-node-with-no-errors/24417/1 "2017-05-08T08:35:26Z")

</div>

I am trying to run an ansible ping, but it it hanging on a single hostname, and showing no error or log messages.

[defaults]  
host\_key\_checking = False  
command\_warnings = False  
error\_on\_undefined\_vars = True  
gathering = smart  
#ssh\_args = -o ControlMaster=auto -o ControlPersist=30m  
inventory = ~/hosts/ansible.dyn  
#transport = paramiko

[ssh\_connection]  
control\_path = %(directory)s/%%h-%%p-%%r

---

<div class="post-metadata">

**Author:** ![Dick\_Davies](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@Dick\_Davies](https://forum.ansible.com/u/Dick_Davies)\
**Post date:** [May 8, 2017, 6:38pm UTC](https://forum.ansible.com/t/ansible-ping-hanging-on-a-single-node-with-no-errors/24417/2 "2017-05-08T18:38:56Z")

</div>

Well, back to basics.

Can you SSH to the server manually?  
If so, try adding '-vvvv' to the ping task to see if that gives any clues.

---

<div class="post-metadata">

**Author:** ![David\_Binney](https://avatars.discourse-cdn.com/v4/letter/d/3da27b/32.png) [@David\_Binney](https://forum.ansible.com/u/David_Binney)\
**Post date:** [May 8, 2017, 11:06pm UTC](https://forum.ansible.com/t/ansible-ping-hanging-on-a-single-node-with-no-errors/24417/3 "2017-05-08T23:06:32Z")

</div>

Normal ssh is fine and running with -vvvv gives no clues at all. It processes one host fine, then just hangs with no output at all.

---

<div class="post-metadata">

**Author:** ![Dick\_Davies](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@Dick\_Davies](https://forum.ansible.com/u/Dick_Davies)\
**Post date:** [May 9, 2017, 7:01pm UTC](https://forum.ansible.com/t/ansible-ping-hanging-on-a-single-node-with-no-errors/24417/4 "2017-05-09T19:01:18Z")

</div>

Are all the params in that ansible config correct (specifically the  
control path)?  
I don't know if they're defaults,  
or you've customised them for some reason, but I'd be verifying those next.
