Skip to content
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

project_dir does not work #1218

Open
Shrews opened this issue Mar 9, 2023 · 2 comments
Open

project_dir does not work #1218

Shrews opened this issue Mar 9, 2023 · 2 comments
Labels
bug Something isn't working verified This issue has been verified/reproduced by maintainer

Comments

@Shrews
Copy link
Contributor

Shrews commented Mar 9, 2023

Setting project_dir in the interface.run() method does not appear to work. Example:

r = ansible_runner.run(
        private_data_dir='demo',
        playbook='test.yml',
        project_dir='my_project',
)

This should find the demo/my_project/test.yml playbook, but instead fails with:

ERROR! the playbook: test.yml could not be found

@github-actions github-actions bot added the needs_triage New item that needs to be triaged label Mar 9, 2023
@Shrews Shrews added bug Something isn't working verified This issue has been verified/reproduced by maintainer labels Mar 9, 2023
@jkugler
Copy link

jkugler commented Mar 9, 2023

Also, it appears to not modify the directory it passes to podman as the working directory. Even with "project_dir" specified, podman is still invoked with:

execve("/usr/bin/podman", ["/usr/bin/podman", "run", "--rm", "--tty", "--interactive", "--workdir", "/runner/project", "-v", ...

and if the 'project' directory does not exist in private_data_dir, will throw an error of Error: workdir "/runner/project" does not exist on container ...

@Akasurde
Copy link
Member

resolved_by_pr #1222

@Akasurde Akasurde removed the needs_triage New item that needs to be triaged label Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working verified This issue has been verified/reproduced by maintainer
Projects
None yet
Development

No branches or pull requests

3 participants