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
376 stars 135 forks source link

Wrong ansible versions in the ubuntu- and alpine- based ansible-2.11 images #47

Closed vitalyrepin closed 2 years ago

vitalyrepin commented 2 years ago

It looks like that ansible-2.11 is not available in any of the ubuntu- and alpine-based images. Ansible 2.13.0 is included into these images.

For example:

docker run --rm willhallonline/ansible:2.11-alpine-3.14 ansible --version ansible [core 2.13.0]

docker run --rm willhallonline/ansible:2.11-ubuntu-20.04 ansible --version ansible [core 2.13.0]

docker run --rm willhallonline/ansible:2.11-alpine-3.15 ansible --version ansible [core 2.13.0]

pavelpikta commented 2 years ago
docker run -it willhallonline/ansible:2.11-alpine-3.13 /bin/sh
/ansible # ansible --version
ansible [core 2.13.0]
config file = None
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.10/site-packages/ansible
ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/bin/ansible
python version = 3.10.4 (main, Apr 30 2022, 16:49:16) [GCC 11.2.1 20220219]
jinja version = 3.1.2
libyaml = False
/ansible # cat /etc/alpine-release
3.16.0
/ansible #

@willhallonline looks like a problem with build specific docker image

willhallonline commented 2 years ago

So, this has been an issue with dependencies, wherein it is installing 2.11.11 (as an example) but by also installing the wider ansible-lint project it upgrades other versions due to dependencies, so I will need to tie the versions together. Should be fixed later today.