简体   繁体   中英

Rundeck Authentication failure on new remote node

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. 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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM