Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker action plugin moved but synchronize doesn't know that #132

Closed
SirUli opened this issue Jan 28, 2021 · 4 comments · Fixed by #144
Closed

docker action plugin moved but synchronize doesn't know that #132

SirUli opened this issue Jan 28, 2021 · 4 comments · Fixed by #144

Comments

@SirUli
Copy link

SirUli commented Jan 28, 2021

SUMMARY

Action plugin synchronize requires an update due to the new path of docker. Currently it fails here when attempting to copy data to docker due to docker having moved from community.general.docker to community.docker.docker.

Looking at the overall source code of this plugin this might need a change of multiple locations (e.g. L63, 173 etc) towards the new location of the module.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

synchronize

ANSIBLE VERSION
2.10.6
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE

Run a docker container, then run a synchronize task to sync data into this docker container.

EXPECTED RESULTS

Data is synced successfully

ACTUAL RESULTS
fatal: [container]: FAILED! => {"changed": false, "msg": "synchronize uses rsync to function. rsync needs to connect to the remote host via ssh, docker client or a direct filesystem copy. This remote host is being accessed via community.docker.docker instead so it cannot work."}
@glillico
Copy link

glillico commented Feb 26, 2021

I am seeing the same issue and after chatting with @tadeboro on the ansible-molecule irc channel, it was pointed out that the docker elements have now been moved to the community.docker collection, however the synchronize module has not been updated to include this collection and needs community.docker.docker adding.

@rockandska
Copy link

Just hit the same error with ansible 2.9.27, not sure it was backported

@tadeboro
Copy link
Contributor

tadeboro commented Nov 6, 2021

Just hit the same error with ansible 2.9.27, not sure it was backported

The 2.9 Ansible release only receives security fixes, so this will not be backported. What you can do is install ansible.posix collection and use FQCN in your playbook. This should fix things on 2.9.

@rockandska
Copy link

Already tried with molecule==3.4.0,molecule-docker==1.1.0
and something like

ansible.posix.synchronize
  src: /tmp/
  dest: /tmp/

But hit this error with ansible

ERROR! couldn't resolve module/action 'ansible.posix.synchronize'. This often indicates a misspelling, missing collection, or incorrect module path.

The error appears to be in '/home/rockandska/Documents/Git/ansible-role-rabbitmq/molecule/cluster/pre_tasks.yml': line 44, column 11, but may
be elsewhere in the file depending on the exact syntax problem.

Will try to update molecule / molecule-docker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants