jmal98 / ansiblecm

A Docker based Ansible control machine for running playbooks in a consistent environment.
Apache License 2.0
42 stars 25 forks source link

Last docker image doesn't have ansible 3.1.0 #12

Open ricardogaspar2 opened 3 years ago

ricardogaspar2 commented 3 years ago

Hi there, I'm having an issue with the latest docker image. It supposed to have the latest ansible, but noticed that it has ansible 2.10.7. Could you double-check it?

docker run -it --env ANSIBLE_HOST_KEY_CHECKING=False --entrypoint ansible -v $PWD:/tmp/playbook:Z jmal98/ansiblecm:3.1.0 --version
ansible 2.10.7
  config file = None
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.8/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 3.8.8 (default, Mar 15 2021, 13:10:14) [GCC 10.2.1 20201203]
jmal98 commented 2 years ago

Hi,

It looks like that is new behavior of Ansible with it's change to split out things into different components (https://www.ansible.com/blog/ansible-3.0.0-qa). It appears that --version will only show the version of the base components. This is also confirmed when looking at the installed components via:

docker run -it --rm --env ANSIBLE_HOST_KEY_CHECKING=False --entrypoint sh -v $PWD:/tmp/playbook:Z jmal98/ansiblecm:3.1.0 -c 'find / -name '*ansible*' 2> /dev/null' | grep egg /usr/lib/python3.8/site-packages/ansible-3.1.0-py3.8.egg-info /usr/lib/python3.8/site-packages/ansible_base-2.10.7-py3.8.egg-info