Configuring a specific Ansible version in AWX EE Image

993 views
Skip to first unread message

Manikandan Balasubramanian

unread,
Aug 5, 2022, 3:46:02 AM8/5/22
to AWX Project
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

Michael Nelson

unread,
Aug 12, 2022, 12:04:58 PM8/12/22
to AWX Project
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.

Manikandan Balasubramanian

unread,
Aug 13, 2022, 12:20:03 AM8/13/22
to awx-p...@googlegroups.com
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.

--
You received this message because you are subscribed to a topic in the Google Groups "AWX Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/awx-project/OiPQ1P0xZ0I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to awx-project...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/awx-project/191e9887-fe9a-4625-91b8-04d9854ef910n%40googlegroups.com.

Shahzad Malik

unread,
Jul 12, 2023, 5:34:57 AM7/12/23
to AWX Project
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:

---
version: 1
build_arg_defaults:
        EE_BASE_IMAGE: quay.io/ansible/ansible-runner:stable-2.9-devel
        EE_BUILDER_IMAGE: quay.io/ansible/ansible-builder:latest
dependencies:
        python: requirements.yml
        system: bindep.txt
additional_build_steps:
      prepend:
        RUN yum install -y yum-utils \
            yum-config-manager --add-repo https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo \
            yum -y install packer \
            yum -y install terraform \
            /usr/bin/packer --version \
            terraform --version

requirements.txt is below
ansible


bindep.txt
git [platform:rpm]

builder output:

[3/3] COMMIT awx_ee_custom_2.9.dev1
--> 77150
Successfully tagged localhost/awx_ee_custom_2.9.dev1:latest

when try to start container for test this error pops up:
CONTAINER ID  IMAGE                                                                COMMAND               CREATED         STATUS                                         PORTS       NAMES
c67a                 localhost/awx_ee_custom_2.9.dev1:latest   ansible-runner ru...  33 minutes ago  Exited (1) 32 minutes ago              awx_2.9_container

Regards,

Shaz

AWX Project

unread,
Jul 14, 2023, 1:25:53 PM7/14/23
to AWX Project
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
Reply all
Reply to author
Forward
0 new messages