-
Notifications
You must be signed in to change notification settings - Fork 359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Relative path in private_data_dir
breaks inventory loading
#1216
Comments
I'm not certain how things are working if you pass an absolute path because I see a couple of things wrong with your example:
|
To be more specific, this is the real error:
The WARNINGS you see from |
Yes, my first-place goal is to run Ansible from python-based webapp, using runtime-loaded variables like inventory and ssh-keys. So basically, the only file I've created by hand is
Yes, really, I've missed this point, but looks like runner for some reason catches the right playbook file that I'm passing to it But if I fix this issue, create
/code/playbooks/project/playbooks/ - why is it duplicating
Playbook body:
Runner object:
|
It appears that there is indeed a bug when you set |
@Shrews much appreciate! |
Hi! In my project I have the following file structure:
And when in my code I pass
private_data_dir
as'playbooks'
I get the following output:
Please, note, that ssh key was processed correctly via the correct path -
/code/playbooks/artifacts/9d78f285-b9d4-452a-a905-3faa85f6f04f/ssh_key_data
, but inventory path breaks and duplicates theprivate_data_dir
value inside it -Unable to parse /code/playbooks/playbooks/inventory/hosts
which leads to fail of the run.When I pass absolute path (
/code/playbooks
) to theprivate_data_dir
parameter, everything works correctly.ansible-runner
version: 2.3.2The text was updated successfully, but these errors were encountered: