Problem with installation

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

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.

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

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.