Ping Module : Why ansible wants to SSH to the server for which I am trying a ping?
305 views
Skip to first unread message
Suneel Gali
unread,
Jun 22, 2015, 7:46:53 AM6/22/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
Hi Team,
I just started working on ansible and using online documentation to try.
I just ran my first command : ansible all -m ping
Why ansible wants to SSH to the server for which I am trying ping?
It does not make sense (until I am missing some thing) to connect to the server when I just want to ping the server.
I added a Windows machine (the server is up and running) in the host file and the ping command failed on SSH.
If I am trying to run a command on remote server, SSH connection is required. Why for "ping"?
Thanks, Suneel
Uwe Sauter
unread,
Jun 22, 2015, 7:50:59 AM6/22/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
The "ping" module is *NOT* Ansible trying to reach a host via ICMP message. Ansible will try to connect to the host via SSH and
execute the "ping" module which just generates a "pong" answer.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
The ping module is to verify that ansibl we can login to the host and has the base requirement s to execute modules. It is does not correspond to the ping networking tool (except a s a concept).