Reputation: 39
I want to add the new remote node in rundeck but it has shown the in node tab node details but it is giving the Failed: AuthenticationFailure: Authentication failure connecting to node: "192.168.1.200". Make sure your resource definitions and credentials are up to date.
you can see the error message in the screenshot.
I have copied the key using ssh-copy-id user@ip and its working fine with ansible -m ping all
from CLI but when I execute the commands from rundeck its giving error. I gave the sudo right to user and hostkeychecking no
, I am not using the resourse.xml in /var/lib/rundeck/project
but still facing the issue. how it could be fixed.
Upvotes: 0
Views: 792
Reputation: 4325
You need to define ansible_user
(Ansible host file, usually at /etc/ansible/hosts
) or remote_user
(Ansible playbooks context). Take a look at this.
Also, you can define that user at Rundeck, just go to your project, then go to Project Settings > Edit Configuration > Default Node Executor (the tab, defined as "Ansible Ad-Hoc Node Executor"), put the user name on "SSH User" textbox and save.
Upvotes: 2