Open polski-g opened 1 year ago
Can confirm this, encountered the same while trying to use ansible from a custom venv path. Using the same venv binary path for importing nodes from the ansible inventory works.
I have a related problem and would like to have someone confirme that this is not just a problem with my setup and is related to this.
Brief: The "Ansible binaries directory path" in the Project Settings is not safed after clicking "Save" button. No error appears.
Rundeck: 4.13.0 Ansible-Plugin: ansible-plugin-3.2.3.jar
To reproduce the issue/bug do:
/etc/ansible/venv-ansible/bin
)You will jump back to your project, so go back to the Settings via (Step 1 and 2 above)
The "Ansible binaries directory path" field is still empty and not set in my case.
Before: Saving
After: Saving and Return
Question 1: Can this be verfied as a bug or setup issue on my side? Thanks for clarification.
Question 2: Where is/should the value be saved on the machine? In DB, on Disk? I checked the DB and could not find it so far. (Using postgresql). I checked under /etc/rundeck in the *.properties files and could not find it either.
Confirmed on the latest Rundeck / Plugin version.
I was told there is a work around. I was given this as the work around - https://imgur.com/9fiCwoT Is there a way to this at the project level? I would have to changes lots of projects to resolve this.
Is anyone using the h2 database while having this issue? I'm using it because i'm still testing.
Hello, any update on when this will get resolved? It is blocking our ability to update and migrate the application.
So I just installed the rpm version of rundeck on CentOS Stream 9. I used the default DB (h2). I then created a new project and went back into the settings and was able to configure the Ansible path. After hitting save it worked. Also this was in the Edit Nodes -> Sources -> Ansible Resource Model Source. But this works!!! Has anyone else tried this?
Whats the progress on this? Is any java developer looking into this?
This is a bit of a show stopper for us. Not sure how others are getting around this....
I have a related problem and would like to have someone confirme that this is not just a problem with my setup and is related to this.
Brief: The "Ansible binaries directory path" in the Project Settings is not safed after clicking "Save" button. No error appears.
Rundeck: 4.13.0 Ansible-Plugin: ansible-plugin-3.2.3.jar
To reproduce the issue/bug do:
- Go to Project -> Project Settings -> Edit Configuration
- Change to Tab "Default Node Executor" -> "Ansible Ad-Hoc Node Executor"
- Set "Ansible binaries directory path" to your venv bin or any value (in my case
/etc/ansible/venv-ansible/bin
)- Adjust other mandatory fields
- Click "Save"
You will jump back to your project, so go back to the Settings via (Step 1 and 2 above)
The "Ansible binaries directory path" field is still empty and not set in my case.
Before: Saving
After: Saving and Return
Question 1: Can this be verfied as a bug or setup issue on my side? Thanks for clarification.
Question 2: Where is/should the value be saved on the machine? In DB, on Disk? I checked the DB and could not find it so far. (Using postgresql). I checked under /etc/rundeck in the *.properties files and could not find it either.
Looks like it's solved in the latest version (4.15) but sadly it's still not used at the job level.
My bad, it's still an issue in 4.15.0 :(
I have ansible installed into a Python virtualenv. (Let's assume I will want a separate ansible install for every Rundeck project)
It is not present on the $PATH. It is at
/var/lib/rundeck/_workspace/ansible/venv/bin/ansible-playbook
The Ansible default node executor for my project has the path for the ansible binaries set:
You can see from strace output, when I run an ad-hoc ansible playbook job, that rundeck is just trying to find the ansible-playbook binary on $PATH instead of the exact directory I gave it in the setup.
Rundeck should look in the directory specified (
ansible-binaries-dir-path
) in the project setup for the binary, should it not?