ansible ping hanging on a single node with no errors

633 views
Skip to first unread message

David Binney

unread,
May 8, 2017, 4:35:26 AM5/8/17
to Ansible Project
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

----- 

ansible 2.3.0.0
  config file = /Users/dbinney/.ansible.cfg
  configured module search path = Default w/o overrides
  python version = 2.7.13 (default, Dec 18 2016, 07:03:39) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)]

----
> $ python --version                                                                                                               [±master ●●]
Python 3.6.1

Dick Davies

unread,
May 8, 2017, 2:39:10 PM5/8/17
to ansible list
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.
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-proje...@googlegroups.com.
> To post to this group, send email to ansible...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/4c929ec6-4ee5-48b2-8f5a-62f3b7a9a1df%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

David Binney

unread,
May 8, 2017, 7:06:55 PM5/8/17
to ansible...@googlegroups.com
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. 

You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/qkrC2vL1Fnk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.

To post to this group, send email to ansible...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--
Cheers David Binney

Dick Davies

unread,
May 9, 2017, 3:01:34 PM5/9/17
to ansible list
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.
> https://groups.google.com/d/msgid/ansible-project/CAN123g%3DVn1_-Bo2VhpZkaCqrAy%2BNZCgcey2Ffw_jC-RAqOg3fQ%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages