You can run it with a single host like: "ansible-playbook -i <hostname/ip>,
playbookname.yml"

But for it not to complain you must have the statement  'hosts: all' in
your playbook.

Cheers, Mike

On Tue, Jul 25, 2017 at 12:26 PM Suporter <[email protected]> wrote:

> i cannot run a playbook straightaway against a single host without having
> that in inventory?
>
>
> 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/fdb6e546-d673-4622-a07e-a120febfaa2c%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/fdb6e546-d673-4622-a07e-a120febfaa2c%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/CAMuthMdynoHQf121w-G1b%3DwHTGpfriivmnEBFRwkyYWbycZPMQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to