Closed sshnaidm closed 5 years ago
Files identified in the description: None
If these files are inaccurate, please update the component name
section of the description or use the !component
bot command.
!component =lib/ansible/plugins/connection/podman.py
Files identified in the description:
If these files are inaccurate, please update the component name
section of the description or use the !component
bot command.
cc @TomasTomecek click here for bot help
Should be solved in https://github.com/ansible/ansible/pull/57741
SUMMARY
Using podman connection plugin with ansible - it fails to run and reports permission denied error:
PermissionError: [Errno 13] Permission denied: b'/root/.ansible/tmp/ansible-tmp-1560332641.0692234-230169342520221/AnsiballZ_setup.py'
On Fedora29 podman can't mount rootless containers, it fails with error:
Error: cannot mount using driver overlay in rootless mode
In the plugin the error isn't handled and mount point is empty, which causes copying ansible temporary files to/root/.ansible/tmp
on thelocalhost
, not to container itself. It should support direct copy of files using "podman cp" without mount if it's not available on the current system. (Also may need support for root containers, but it's a different story) Also podman plugin should fail on errors when copying files or encounter any other problem, not continue to work silently.ISSUE TYPE
COMPONENT NAME
ansible-podman
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
start container:
playbook file:
inventory file:
command to run:
EXPECTED RESULTS
Ansible connects to running
testc
container and install therevim
.ACTUAL RESULTS