# ansible connection failure

**URL:** <https://forum.ansible.com/t/ansible-connection-failure/21202>\
**Category:** Ansible Project\
**Created:** [April 19, 2016, 1:01am UTC](https://forum.ansible.com/t/ansible-connection-failure/21202 "2016-04-19T01:01:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![John.1209](https://avatars.discourse-cdn.com/v4/letter/j/ecb155/32.png) [@John.1209](https://forum.ansible.com/u/John.1209)\
**Post date:** [April 19, 2016, 1:01am UTC](https://forum.ansible.com/t/ansible-connection-failure/21202/1 "2016-04-19T01:01:17Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Benjamin\_Redling](https://avatars.discourse-cdn.com/v4/letter/b/47e85d/32.png) [@Benjamin\_Redling](https://forum.ansible.com/u/Benjamin_Redling)\
**Post date:** [April 20, 2016, 8:09am UTC](https://forum.ansible.com/t/ansible-connection-failure/21202/2 "2016-04-20T08:09:04Z")

</div>

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

Benjamin
