When you use -i you are pointing Ansible to a inventory file. In your case
that inventory file is named as '10.22.212.184,'  - does a file with that
name exist at all?

If I try to replicate your setup, pointing to an IP address with -i without
a corresponding inventory file with that name, I not only get the 'no hosts
matched' error I also get the following:

<- Cut ->
 [WARNING]: Host file not found: 192.168.56.11
 [WARNING]: provided hosts list is empty, only localhost is available
<- Cut ->

Do you also see the above when you run it in your end?

There are some info about how to create your inventory file(s) here:
http://docs.ansible.com/ansible/latest/intro_inventory.html That could be
worth having a look at in order to troubleshoot this further.

Cheers, Mike

On Tue, Jul 25, 2017 at 7:58 AM Suporter <[email protected]> wrote:

> i dont get this, this is not working, how can i make it work? :(
>
>
> On Monday, July 24, 2017 at 5:17:27 PM UTC+5:30, Suporter wrote:
>>
>> Hello,
>>       i ran this
>> ansible-playbook setup.yml -i '10.22.212.184,'  and i got the error
>> message as no hosts matched, the ip i gave should be entered somewhere else
>> as inventory file as well?
>>
>> --
> 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/6df915d5-72f6-4c1b-b857-f7bac5630e1b%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/6df915d5-72f6-4c1b-b857-f7bac5630e1b%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAMuthMf5xm_ScD2CgvWPCyPim4ZsCTPRN9Z%3Dx0PftenvyzTQwQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to