* First you must have a host file list, with the name of your differents
raspberry:
[server]
raspberry1
raspberry2
* Save into hosts file name
ansible-playbook -i hosts -l server (your ansible script)
(your ansible script)
- hosts: all
remote_user: root
gather_facts: yes
tasks:
- ping:
Le mardi 12 juillet 2016 17:26:30 UTC+2, Jørgen Høyer a écrit :
>
> 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/aa4d8ff3-5386-4f8f-ac44-bcfcf31d40d8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.