RUNDECK 4.17 Ansible node sources [Errno 13] Permission Denied

186 views
Skip to first unread message

Diogène Mutombo

unread,
Nov 6, 2023, 5:06:31 AM11/6/23
to rundeck-discuss
Hello,
I have an error when using ansible inventory as node source.
I am running ansible 2.15 ans rundeck 4.17.1 are on the same server.
I am using mariadb as datasource, on the same server.

I am getting this error in the service.log

ok: [192.168.1.101]
TASK [Ensure tmpdir data directory] ********************************************                                                                                                                                  
fatal: [192.168.1.101 -> localhost]: FAILED! => {"changed": false, "msg": "There was an issue creating /tmp/rundeck/ansible-hosts17729303543084217174/data as requested: [Errno 13] Permission non accordée: b'/tmp
/rundeck/ansible-hosts17729303543084217174/data'", "path": "/tmp/rundeck/ansible-hosts17729303543084217174/data"}

ll /tmp/
total 0
drwxr-xr-x 2 rundeck rundeck 17  5 nov.  17:54 hsperfdata_rundeck
drwxrwxr-x 3 rundeck rundeck 58  5 nov.  19:11 rundeck

~# ll /tmp/rundeck/
total 0
drwx------ 2 rundeck rundeck 6  5 nov.  17:56 groovy-generated-tmpdir-16092777601776733666

It is was working till this morning.

Can someone help me ?
Here is the configuration of the node source in the project
Capture d’écran du 2023-11-05 18-16-44.png
Best regards,
Diogène

rac...@rundeck.com

unread,
Nov 6, 2023, 5:55:22 AM11/6/23
to rundeck-discuss

Hi Diogène,

Which plugin version are you using? (in your case, you can check that by looking at the Rundeck libext directory at /opt/rundeck/libext). Also, can you double-check your server /tmp and /tmp/rundeck directory permissions? Try cleaning the /tmp/ansible-hosts-* directories to see if the plugin can re-create them.

Greetings.

Diogène Mutombo

unread,
Nov 6, 2023, 7:14:47 AM11/6/23
to rundeck-discuss
Hello,
Thanks for the reply.
for the plugin here is the version
#ll /var/lib/rundeck/libext/
total 50560

-rw-r--r--  1 rundeck rundeck   337591 18 oct.  15:58 ansible-plugin-3.2.7.jar
-rw-r--r--  1 rundeck rundeck     9775 18 oct.  15:58 attribute-match-node-enhancer-v0.1.5.jar
-rw-r--r--  1 rundeck rundeck  5204465 18 oct.  15:58 aws-s3-model-source-v1.0.8.jar
drwxrwxr-x 26 rundeck rundeck     4096  5 nov.  17:56 cache

I have already checked the permissions, rundeck user have the right permissions to modifiy the /tmp folder, I have even put 777
drwxrwxrwt  10 root root    220  6 nov.  00:00 tmp

ll /tmp/
total 0
drwxr-xr-x 2 rundeck rundeck 17  5 nov.  17:54 hsperfdata_rundeck
drwxrwxr-x 3 rundeck rundeck 58  5 nov.  21:52 rundeck

I have deleted all the /tmp/rundeck/ansible-host*

What I notice is that, it is created when I clic on Node(via GUI)
~# ll /tmp/rundeck/
total 8
drwx------ 2 rundeck rundeck   49  6 nov.  13:09 ansible-hosts16951581296510193529
-rw------- 1 rundeck rundeck 2459  6 nov.  13:09 ansible-runner10509599520465199083id_rsa
-rw-rw-r-- 1 rundeck rundeck   68  6 nov.  13:09 ansible-runner16272039705726727448extra-vars

drwx------ 2 rundeck rundeck    6  5 nov.  17:56 groovy-generated-tmpdir-16092777601776733666


and then it is deleted after some seconde.
~# ll /tmp/rundeck/
total 0
drwx------ 2 rundeck rundeck 6  5 nov.  17:56 groovy-generated-tmpdir-16092777601776733666
~#

Best regards,

rac...@rundeck.com

unread,
Nov 6, 2023, 9:41:07 AM11/6/23
to rundeck-discuss
I see, could you try running your Ansible playbook manually? Probably you're facing this.

Regards.

Diogène Mutombo

unread,
Nov 6, 2023, 9:52:26 AM11/6/23
to rundeck...@googlegroups.com
Hello, 
Manually the playbook is running ok
But my problem is not the exécution of playbooks but with ansible node source. 
The discovery by rundeck is not working

ansible inventory -> to rundeck is not working 
I have the error I have mentionned 

I dont know if it is clear.

Best regards,

--
You received this message because you are subscribed to the Google Groups "rundeck-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rundeck-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rundeck-discuss/7f957618-d68d-4907-9c2c-8f252c31089fn%40googlegroups.com.

Diogène Mutombo

unread,
Nov 6, 2023, 10:01:08 AM11/6/23
to rundeck...@googlegroups.com
With screenshot, it will maybe be clear
In my project, here is the node Source configuration
image.png
On the nodes, I have only the rundeck node
image.png

In the log, service.log
the gathering facts is ok
image.png
Then, it fails with this error which is obvious for me
image.png
because permissions in the /tmp/rundeck directory is 777.

So, this action is done by rundeck, not by my me (it is not my playbook)


best regards,


rac...@rundeck.com

unread,
Nov 6, 2023, 10:12:00 AM11/6/23
to rundeck-discuss
Try Turning off the gather facts (on the Ansible Resource Model Source) and check your nodes again.

Diogène Mutombo

unread,
Nov 6, 2023, 10:12:14 AM11/6/23
to rundeck...@googlegroups.com
It is ok now
Maybe it will help someone else. what I did. I remove all duplicated entries for servers in my ansible ini inventory file
image.png
for me, it is not a good working because I must Have serveurs in different groups.

best regards,

Diogène Mutombo

unread,
Nov 6, 2023, 3:19:10 PM11/6/23
to rundeck-discuss
It was because of en entry in ansible inventory file named (localhost) that was causing this error
[ansible]
localhost
 after removing this everything is ok

best regards,
Reply all
Reply to author
Forward
0 new messages