mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-01-11 15:15:26 +01:00
Merge pull request #229 from sshnaidm/podman
Allow podman connections in synchronize module SUMMARY ISSUE TYPE Feature Pull Request For fixing issues with molecule: ansible-community/molecule-podman#45 COMPONENT NAME synchronize ADDITIONAL INFORMATION Add podman connections as it's done with buildah and docker. Reviewed-by: Abhijeet Kasurde <None> Reviewed-by: Sergey <None> Reviewed-by: Sumit Jaiswal <sjaiswal@redhat.com> Reviewed-by: Hideki Saito <saito@fgrep.org>
This commit is contained in:
commit
1ebacfb195
2 changed files with 12 additions and 1 deletions
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
bugfixes:
|
||||
- synchronize - add ``community.podman.podman`` to the list of supported connection plugins (https://github.com/ansible-community/molecule-podman/issues/45).
|
||||
|
|
@ -66,7 +66,15 @@ class ActionModule(ActionBase):
|
|||
return path
|
||||
|
||||
# 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, )
|
||||
|
||||
if self._host_is_ipv6_address(host):
|
||||
|
|
|
|||
Loading…
Reference in a new issue