You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change hosts. to match your Raspberry pi's IP address
I had a ssh login error:
fatal: [192.168.1.11]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Permission denied (publickey,password).\r\n", "unreachable": true}
so I had to enable ssh log-in without password and make public and private keys:
$ cd /home/pi/.ssh
$ touch authorized_keys
$ chmod 0644 ./authorized_keys
$ ssh-keygen
$ ssh-copy-id -i ./id_rsa.pub RASPBERRY's_IP_ADDRESS
type password
Now you can edit /home/pi/elkpi/vars/vars-rpi.yml to get your desired versions (6.5.1 at the writing time of this issue)
Anf finally you can run: ansible-playbook -i hosts elk-rpi.yml
The text was updated successfully, but these errors were encountered:
I had the same issue you did. I found a workaround online that will allow you to put your password in once the playbook starts. The parameters have been added to my fork.
I was trying your script, but I got some errors...
ansible must be installed, so 1st step is a sudo apt-get install ansible
Clone your git: git clone https://github.com/surfuga/elkpi/
Change hosts. to match your Raspberry pi's IP address
I had a ssh login error:
fatal: [192.168.1.11]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Permission denied (publickey,password).\r\n", "unreachable": true}
so I had to enable ssh log-in without password and make public and private keys:
$ cd /home/pi/.ssh
$ touch authorized_keys
$ chmod 0644 ./authorized_keys
$ ssh-keygen
$ ssh-copy-id -i ./id_rsa.pub RASPBERRY's_IP_ADDRESS
type password
Now you can edit /home/pi/elkpi/vars/vars-rpi.yml to get your desired versions (6.5.1 at the writing time of this issue)
Anf finally you can run: ansible-playbook -i hosts elk-rpi.yml
The text was updated successfully, but these errors were encountered: