ansible connection failure

24 views
Skip to first unread message

John.1209

unread,
Apr 19, 2016, 12:17:55 AM4/19/16
to Ansible Project
I issue the following command on a host:

ssh remote-host uptime

and I get the expected answer.

I issue the following command on a host:

ansible remote-host -m command -a uptime -vvvvv

and I get a no hosts matched.  I have the remote hosts in the /etc/ansible/hosts file as the only entry.

Why does the ansible connection fail?

Thanks in advance.


Benjamin Redling

unread,
Apr 20, 2016, 4:09:15 AM4/20/16
to ansible...@googlegroups.com
On 04/19/2016 03:01, John.1209 wrote:
> I issue the following command on a host:
>
> ssh remote-host uptime
>
> and I get the expected answer.
>
> I issue the following command on a host:
>
> ansible remote-host -m command -a uptime -vvvvv
>
> and I get a no hosts matched. I have the remote hosts in the
> /etc/ansible/hosts file as the only entry.

It might help getting an answer if you do not omit the verbose output

Benjamin
--
FSU Jena | JULIELab.de/Staff/Benjamin+Redling.html
vox: +49 3641 9 44323 | fax: +49 3641 9 44321
Reply all
Reply to author
Forward
0 new messages