-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSH fail during node_exporter installation #179
Comments
Issue solved by modifying the install.yml file. I removed all lines that say "delegate_to: localhost" |
Do you have the hostname "localhost" in your ansible inventory? Ansible should default to a local connection and not ssh for localhost. Passing
|
Also ran into this and rolled back to |
I'm having the same issue, with the following inventory:
|
Adding |
Hello the node exporter installation is failing during this part:
TASK [prometheus.prometheus.node_exporter : Download node_exporter binary to local folder] ************************
fatal: [...*]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ubuntu@localhost: Permission denied (publickey).", "unreachable": true}
I tried this line and no errors were obtained but the installation ended up being moved to the provisioning machine and not in the target:
ansible-playbook nodeexp.yml -i inventory --connection=local
I'm using the simplest example of playbook and all the other tasks executed fine
become: true
roles:
The text was updated successfully, but these errors were encountered: