mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-07-30 03:14:46 +00:00
Allow podman connections in synchronize module
This commit is contained in:
@@ -66,7 +66,15 @@ class ActionModule(ActionBase):
|
|||||||
return path
|
return path
|
||||||
|
|
||||||
# If using docker or buildah, do not add user information
|
# If using docker or buildah, do not add user information
|
||||||
if self._remote_transport not in ['docker', 'community.general.docker', 'community.docker.docker', 'buildah', 'containers.podman.buildah'] and user:
|
if self._remote_transport not in [
|
||||||
|
'docker',
|
||||||
|
'community.general.docker',
|
||||||
|
'community.docker.docker',
|
||||||
|
'buildah',
|
||||||
|
'containers.podman.buildah',
|
||||||
|
'podman',
|
||||||
|
'containers.podman.podman'
|
||||||
|
] and user:
|
||||||
user_prefix = '%s@' % (user, )
|
user_prefix = '%s@' % (user, )
|
||||||
|
|
||||||
if self._host_is_ipv6_address(host):
|
if self._host_is_ipv6_address(host):
|
||||||
|
|||||||
Reference in New Issue
Block a user