mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-01-11 15:15:26 +01:00
Allow podman connections in synchronize module
This commit is contained in:
parent
a03e652437
commit
c5d49b2a91
1 changed files with 9 additions and 1 deletions
|
|
@ -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):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue