Rundeck- ansible node not showing in GUI

366 views
Skip to first unread message

Iftikhar Hossain

unread,
Aug 19, 2018, 1:55:06 PM8/19/18
to rundeck-discuss
Hi, I am using rundeck version 3.0.1 and want to use rundeck-ansible plugin. I already set the node and necessary configurations:

my project.properties file is:

/var/rundeck/projects/Common_Task/etc/project.properties
#Project Common_Task configuration, generated
#Sun Aug 19 17:04:11 UTC 2018
resources.source.2.config.ansible-disable-limit=false
project.jobs.gui.groupExpandLevel=1
project.ssh-authentication=privateKey
resources.source.2.config.ansible-ssh-keypath=/var/lib/rundeck/.ssh/id_rsa
project.ansible-ssh-auth-type=privateKey
ansible-ssh-timeout=30
service.FileCopier.default.provider=com.batix.rundeck.plugins.AnsibleFileCopier
project.nodeCache.delay=30
project.nodeCache.enabled=true
resources.source.2.config.ansible-gather-facts=true
project.ansible-config-file-path=/var/lib/rundeck/CFAnsiblePlaybooks/ansible.cfg
project.disable.executions=false
ansible-ssh-auth-type=privateKey
project.ssh-keypath=/var/lib/rundeck/.ssh/id_rsa
ansible-ssh-keypath=/var/lib/rundeck/.ssh/id_rsa
ansible-ssh-user=root
resources.source.2.config.ansible-ignore-errors=true
service.NodeExecutor.default.provider=com.batix.rundeck.plugins.AnsibleNodeExecutor
project.ansible-ssh-user=root
project.name=Common_Task
resources.source.2.config.ansible-ssh-user=root
project.disable.schedule=false
resources.source.2.config.ansible-become=true
resources.source.2.config.ansible-ssh-auth-type=privateKey
resources.source.1.type=local
project.ansible-ssh-keypath=/var/lib/rundeck/.ssh/id_rsa
project.ansible-executable=/bin/bash
project.nodeCache.firstLoadSynch=true
resources.source.2.config.ansible-config-file-path=/var/lib/rundeck/CFAnsiblePlaybooks/ansible.cfg
resources.source.2.type=com.batix.rundeck.plugins.AnsibleResourceModelSourceFactory

 I checked this: su rundeck -s /bin/bash -c "ansible all -m ping" and got the expected result.

Also while clicking the node and I checked /var/log/rundeck/service.log and it shows result below:

test.com : ok=1   changed=0    unreachable=0   failed=0  
test2.com : ok=0    changed=0    unreachable=1    failed=0  
test3.com : ok=0    changed=0    unreachable=1    failed=0  
test4.com      : ok=1    changed=0    unreachable=0    failed=0  
test5.com : ok=1    changed=0    unreachable=0    failed=0   

but in GUI it doesn't show any ansible nodes...also be informed that I don't configure any resource.xml file. is it needed? if needed what will set?


Iftikhar Hossain

unread,
Aug 20, 2018, 6:00:12 AM8/20/18
to rundeck-discuss
Now able to get node in rundeck after changes but below errors found:

14:48:33rundeck.test.com 1. CommandFailed dispatching to node test1.com: java.lang.NullPointerException
14:48:33Execution failed: 43 in project test: [Workflow result: , step failures: {1=Dispatch failed on 1 nodes: [test1.com: Unknown: java.lang.NullPointerException]}, Node failures: {test1.com=[Unknown: java.lang.NullPointerException]}, status: failed]

edu...@rundeck.com

unread,
Aug 20, 2018, 11:47:56 AM8/20/18
to rundeck-discuss
Hi Iftikhar,

Thank you so much for your feedback, and glad that you managed to import the nodes from Ansible.


Would it be possible for you to share the debug logs for an execution experiencing the error? It may be possible that you are facing the following NPE issue, which was fixed in version 2.4.1 of the Ansible plugin (Rundeck 3.0.1 bundles with version 2.3.0).


Hope it helps!

Reply all
Reply to author
Forward
0 new messages