# Problem with installation

**URL:** <https://forum.ansible.com/t/problem-with-installation/12823>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [May 17, 2013, 7:18pm UTC](https://forum.ansible.com/t/problem-with-installation/12823 "2013-05-17T19:18:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Romeo\_Theriault](https://avatars.discourse-cdn.com/v4/letter/r/839c29/32.png) [@Romeo\_Theriault](https://forum.ansible.com/u/Romeo_Theriault)\
**Post date:** [May 17, 2013, 7:18pm UTC](https://forum.ansible.com/t/problem-with-installation/12823/1 "2013-05-17T19:18:35Z")

</div>

Looks like your system cannot resolve the hosts. What do you get when you query those hostnames locally? If your system cannot query those hostnames you may have to put the ip’s in the hosts file like so:

ansible-node1 ansible\_ssh\_host=192.168.1.45  
ansible-node2 ansible\_ssh\_host=192.168.1.46

etc…

Romeo

---

<div class="post-metadata">

**Author:** ![Jean\_Paul\_Manjarres](https://avatars.discourse-cdn.com/v4/letter/j/d07c76/32.png) [@Jean\_Paul\_Manjarres](https://forum.ansible.com/u/Jean_Paul_Manjarres)\
**Post date:** [May 17, 2013, 7:28pm UTC](https://forum.ansible.com/t/problem-with-installation/12823/2 "2013-05-17T19:28:09Z")

</div>

I have the hostnames in the /etc/hosts file in the ansible server, and before installing ansible I tested the SSH to the hosts and it worked, ping also worked.

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [May 17, 2013, 7:45pm UTC](https://forum.ansible.com/t/problem-with-installation/12823/3 "2013-05-17T19:45:02Z")

</div>

Can you please share your hostfile in a gist or pastebin and tell me the path to that file?

---

<div class="post-metadata">

**Author:** ![Jean\_Paul\_Manjarres](https://avatars.discourse-cdn.com/v4/letter/j/d07c76/32.png) [@Jean\_Paul\_Manjarres](https://forum.ansible.com/u/Jean_Paul_Manjarres)\
**Post date:** [May 17, 2013, 9:41pm UTC](https://forum.ansible.com/t/problem-with-installation/12823/4 "2013-05-17T21:41:19Z")

</div>

I’m very sorry.  
After reviewing carefully the hosts file for Ansible, I found a typo. Ansible is working propertly with hostnames.

It was my mistake. Just for a suggestion, could the error message be more detailed?, the message I got: FAILED =\> FAILED: [Errno -2] Name or service not known  
didn’t gave me enough information to look up for errors about hostnames.

Thank you for your help, I think Ansible is very interesting and promising.
