Unable to Ping Ansible Hosts in Inventory from Azure Cloudshell

90 views
Skip to first unread message

Carlton Patterson

unread,
May 7, 2018, 1:36:01 PM5/7/18
to Ansible Project

Hello Community,

I have created a Centos host in Azure and added the hosts to my Ansible inventory, however whenever I attempt to ping the host with ansible, from Azure Cloud Shell I get the error shown in image.



However, I can connect to the same host with ssh:


I have been trying to get this to work for two days now.


Im running Ansible version 2.4.3


Any guide (I mean any guide) will be greatly appreciated.


Cheers


Carlton

raj lovely

unread,
May 7, 2018, 3:40:10 PM5/7/18
to Ansible Project
HI Bro,

Let me know if this helps you, because the same was bugging me and i took backup of authorized_keys file and removed  it.

After that, I have ssh-copy-id user@remote_host (copied the ssh keys), then tried to ping which worked for me.

Thanks,
rajesh.

Carlton Patterson

unread,
May 7, 2018, 5:11:06 PM5/7/18
to Ansible Project
Hi Raj,

I'm new to this forum. I can't actually see your answer?

Carlton Patterson

unread,
May 7, 2018, 6:01:35 PM5/7/18
to Ansible Project
Bro,

I tried your suggestion, but I still can't ping with ansible.. Do you have any other suggestions?


On Monday, 7 May 2018 20:40:10 UTC+1, raj lovely wrote:

f.floimai...@gmail.com

unread,
May 9, 2018, 2:47:05 AM5/9/18
to Ansible Project
By default Azure VMs do not answer pings (Microsoft blocks that). So this is not ansible's fault. Use something else to "ping" your VM instead.
Reply all
Reply to author
Forward
0 new messages