You didn't specify the inventory in the 2nd command... try

*ansible -i hosts -m ping all*

On Tuesday, 22 March 2016 15:06:10 UTC, Leroy Walker Jr wrote:
>
> I could really use some help on this issue. I have a hosts file with one 
> server.
> the hosts looks like
>
> *[vm]*
> *172.20.20.106*
>
> when i run the host command, i get:
>
> * ansible -i hosts --list-hosts all*
> * hosts (1):*
> * 172.20.20.106*
>
> but when i run a simple ping command  
> *ansible hosts -m ping*
> * [WARNING]: provided hosts list is empty, only localhost is available*
>
> I get the following
>
> I have not idea whats wrong! 
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/e12b86f3-2fed-4519-8bf6-a23abc34726a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to