You need a group as the second argument. try

ansible -i hosts vm -m ping

On 22 March 2016 at 14:33, Leroy Walker Jr <[email protected]> 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/3c0373b0-2259-4023-9eb5-c9c02735ba0a%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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/CAK5eLPR4nro-17p9DCzXA29XaT%2Bsu0-RTRCiZvHsAy%3DCPP8-%2BA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to