Unable to ping Using Inventory

161 views
Skip to first unread message

Shaikh MateenRehan MohammedSalim

unread,
Dec 28, 2017, 12:58:32 AM12/28/17
to Ansible Project
Hello All,

I am new to ansible and I am am trying to ping different hosts using ansible. I though it was a bug so created an issue on github https://github.com/ansible/ansible/issues/34267, but they said to contact here. I tried the solution given there  ansible all -m ping -i inventory.yaml node0, I got an error Some modules do not make sense in Ad-Hoc (include, meta, etc)
ERROR! Extraneous options or arguments. Please help.

Thanks,
Mateenrehan Shaikh

Kai Stian Olstad

unread,
Dec 28, 2017, 3:16:50 AM12/28/17
to ansible...@googlegroups.com
On Thursday, 28 December 2017 06.58.31 CET Shaikh MateenRehan MohammedSalim wrote:
> Hello All,
>
> I am new to ansible and I am am trying to ping different hosts using
> ansible. I though it was a bug so created an issue on
> github https://github.com/ansible/ansible/issues/34267, but they said to
> contact here. I tried the solution given there
>
> ansible all -m ping -i inventory.yaml node0

You didn't get that command in the Github issue, you got this one

ansible -m ping -i inventory.yaml node0


--
Kai Stian Olstad

Shaikh MateenRehan MohammedSalim

unread,
Dec 28, 2017, 4:49:29 PM12/28/17
to Ansible Project
When I typed that command I got an error  Extraneous options or arguments, so this command is wrong. Do you know the right command?

Brian Coca

unread,
Jan 2, 2018, 11:56:46 AM1/2/18
to Ansible Project
@shaikh, the command looks right, can you print both the command and
the output you get with -vvv added?





--
----------
Brian Coca
Reply all
Reply to author
Forward
0 new messages