willhallonline / docker-ansible

Ansible inside Docker containers: Alpine, Ubuntu, Rocky & Debian with Ansible 2.16, 2.15, 2.14, 2.13, 2.12, 2.11, 2.10 and 2.9 + Mitogen
https://www.willhallonline.co.uk/project/docker/docker-ansible/
MIT License
392 stars 137 forks source link

ansible-galaxy collection list is rather old #64

Closed gnotari closed 8 months ago

gnotari commented 1 year ago

Many of the collections included are really old (possibly years old, in some cases). I second the decision of including them, but updated collections should be included at some point.

And yes, of course, I can install them by hand, but the whole point of having a packaged ansible distro is dispensing with most of that..

willhallonline commented 1 year ago

That is fine. Do you want to give me some guidance of where/what would be an improvement? For where I use the container it is fine as mainly use it to run Ansible via CI jobs rather than as a local machine utility.

willhallonline commented 1 year ago

@gnotari , did you ever have an update for this? I am not sure that there is anything I can do for ansible-galaxy but just wanted to make sure I was not missing something.

willhallonline commented 8 months ago

Closing as no updates.

ianb-mp commented 5 days ago

I was wondering the same. It looks like the python package ansible installed by pip3 contains the builtin collections. The collections versions in that package are controlled upstream.

It is possible to update specific collections e.g.

ansible-galaxy collection install -U community.general

I don't think it makes sense for willhallonline/docker-ansible to updating specific collections. I think the best approach might be to create a custom Dockerfile based on willhallonline/docker-ansible that updates the ansible python package or the specific collection you need e.g.

FROM willhallonline/ansible:latest
# RUN pip3 install ansible -U
RUN ansible-galaxy collection install -U community.general