adoptium / infrastructure

This repo contains all information about machine maintenance.
Apache License 2.0
86 stars 101 forks source link

Multiple failures in `dockerhost` playbook #2812

Open sxa opened 1 year ago

sxa commented 1 year ago

Please put the name of the software product (and affected platforms if relevant) in the title of this issue

Delete as appropriate from this list:

Details: When I try to run the dockerhost.yml playbook I get a number of failures:

zdtsw commented 1 year ago

did ERROR! couldn't resolve module/action 'community.docker.docker_container. happen on certain machine? which version of ansible is running there?

worth check whats in the $home/.ansible/collections/ansible_collections/ on that machine

sxa commented 1 year ago

did ERROR! couldn't resolve module/action 'community.docker.docker_container. happen on certain machine? which version of ansible is running there? worth check whats in the $home/.ansible/collections/ansible_collections/ on that machine

It's on a 'clean' (new install) of Ubuntu 20.04 with ansible 2.9.6 installed via the package manager. There is no collections directory under ~/.ansible

zdtsw commented 1 year ago

so I think this newly installer machine need to have community plugins locally first. e.g if run ansible-galaxy collection install community.docker , it downloads into $home/.ansible/collections/ansible_collections/community/docker

then playbook will be able to find community.docker.docker_container