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
fail to create container when ansible-runner is installed in /usr #1088
Comments
additional context: when operating in this mode even if i'm not running as root
In my opinion there are 2 changes needed here
|
When using process_isolation_executable (in this specific case
podman
) viaansible-runner run
andansible-runner worker
ansible-runner will mount
ansible_runner/display_callback/callback
on the host to/home/runner/.ansible/plugins/callback
in the containeransible-runner/ansible_runner/config/_base.py
Lines 508 to 509 in c143c07
When ansible-runner is installed in /usr directory (in this specific case
/usr/lib/python3.9/site-packages/ansible_runner
) ansible-runner fail to create container due to not able to mount from/usr
directory (forbidden by podman)ansible-runner/ansible_runner/utils/__init__.py
Line 73 in c143c07
copy_if_needed
param does not trigger due if/usr
directory is own by current user (when running as root)error log:
job_args
offending line that cause
podman run
failureThe text was updated successfully, but these errors were encountered: