Open Crystallic opened 3 years ago
This is not really a Molecule issue. The underlying problem is the synchronize
module itself that does not support the podman connection plugin (https://github.com/ansible-collections/ansible.posix/blob/a03e652437434fd9f600071bf99332ef4dd04292/plugins/action/synchronize.py#L199).
So this issue should be opened in the ansible.posix repo.
At this moment we depend on https://github.com/ansible-collections/ansible.posix/issues/149 to make a new release, so we can do something require something like ansible.posix>=1.3.0
in order to close this bug.
@Crystallic I would recommend you to install ansible.posix from master and test, just to be sure that is enough in order to fix this bug.
I have a feeling that the issue is not fixed yet (https://github.com/ansible-collections/ansible.posix/pull/229#issuecomment-886178469).
hey sry for the late answer.. i will try to test it in the coming week :)
@sshnaidm Do you think that synchronize works now with podman containers? Which version of the collection do we need in order to make use of that feature? Does it work with older versions of Ansible like 2.9 ?
Yeah, it should work with release of ansible.posix 1.3.0. If you use syncronize module from ansible.posix collection with Ansible 2.9 (like ansible.posix.synchronize
) it will work. But it wasn't ported to Ansible 2.9 of course.
At this moment we only require https://github.com/ansible-community/molecule-podman/blob/main/src/molecule_podman/driver.py#L197 but i will make a change to also require ansible.posix 1.3.0 as the module use if not of much use without syncronize, as as most users will want to rsync stuff to the tested node in prepare.yml
Hey I got some issues by testing Ansible roles with synchronize module..
Is there any possibility to get the synchronize module from Ansible working with Molecule and podman? Or is there any indication of how long it will take for this feature to become available?
System Information: Debian10/Debian11/Archlinux (maybe any OS)