Configuring a specific Ansible version in AWX EE Image

,

Hi Team,

I have a requirement of installing ansible version 2.9.10 in AWX EE image. I specified this: “pip install -I ansible==2.9.10” in my execution-environment.yaml. However when I go to the generated AWX EE image, I observe the ansible version as core 2.12.5

bash-4.4$ ansible --version
/usr/local/lib/python3.8/site-packages/paramiko/transport.py:236: CryptographyDeprecationWarning: Blowfish has been deprecated
“class”: algorithms.Blowfish,
ansible [core 2.12.5.post0]
config file = None

Can someone please let me know how I can get around this issue?

Thanks and Regards,
Mani

Hi Mani,
I had the same issue about setting the ansible version and got around it by adding:
build_arg_defaults:
EE_BASE_IMAGE: ‘quay.io/ansible/ansible-runner:stable-2.12-devel

to the execution-environment.yml file.

I am using the latest version of the builder and wanted version 2.12, you should try:
build_arg_defaults:
EE_BASE_IMAGE: ‘quay.io/ansible/ansible-runner:stable-2.9-devel

Hope that helps.

Thanks. I ended up something like this, I went with a stable 2.9 release But it has 2.9.27 version. I had a requirement of having 2.9.10, so I uninstalled Ansible and reinstalled 2.9.10.

Hi Guys

Can someone guide me how did you make execution environment work with ansible 2.9? I need to create an execution env with ansible 2.9. I followed your instructions but when I start that container it exit straight away. Not sure, what I am missing here? If anyone has clear instructions how can I do it, will appreciate. Thanks

My execution-environment.yml file is below:

you may have greater success using the new ansible-builder 3.0, check out this link https://ansible.readthedocs.io/projects/builder/en/stable/

AWX Team