Hi Jørgen,

By default, ansible uses the default host file specified @ /etc/hosts (I'm 
assuming you are using linux here). If you specified a separate host file, 
you need to tell ansible its location with the *-i* option.
Also, do you think you can share the content of your host file ? It has to 
be something like this : (the IP adress is fictive and for demonstration 
purposes only)

[group_name]
custom_hostname ansible_host=192.168.1.2 

Or 

[group_name]
192.168.1.2

On Tuesday, July 12, 2016 at 11:26:30 AM UTC-4, Jørgen Høyer wrote:
>
> I'm trying to set upp ansible for a project with multiple Raspberry Pi's. 
> I created sshkey's and copied them to my test node. I also made a host 
> list. When i try to ping (ansible all -m ping) the node i keep getting the 
> same errormsg: 
>
> SSH Error: data could not be sent to the remote host. Make sure this host 
> can be reached over ssh. 
>
> I know I can connect via ssh, because I did a test with ssh pi@ip_address. 
> I also have to enter passphrase for id_rsa so i guess that means it 
> recognizes the key on both ends?
>
> When I run -vvvv it says:
> ERROR! Missing target hosts
>  
> Anyway. If anybody came across this error before or know how I can solve 
> it I would be greatfull.
>

-- 
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/095e6174-f9c2-4cfb-9ef9-b6ba9e040a3e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to