We’re using AWX operator 0.12 with AWX 19.2.2 and noticed that awx CLI version is 18.0.0. I tried to update the docker image and couldn’t do, wondering what’s the best way to upgrade the awx CLI from version 18 to latest 19.4.x or other version.
Is it possible to upgrade the CLI without the operator and AWX upgrade?
If we have to upgrade the operator and AWX version for existing installs, any recommendations on what needs to be done to reduce manual steps, if any?
Personnally, I am installing the AWX cli via pip when I don’t need the binary in-cluster:
$ pip show awxkit
Name: awxkit
Version: 19.4.0
Summary: The official command line interface for Ansible AWX
Home-page: https://github.com/ansible/awx
Author: Red Hat, Inc.
Author-email: info@ansible.com
License: Apache 2.0
Location: /home/vrubiolo/.local/lib/python3.10/site-packages
Requires: requests, PyYAML
Required-by:
For the other usecases, I am pulling it in my custom Execution Environment:
$ cat requirements.yml
Thank you. In our scenario we need the awx CLI in the web and task containers. I tried to upgrade and it didn’t work as expected, so went ahead and upgraded from 19.2.2 to 20.0.1. Had to re-do and import data into the instance but learned a lot during the process since each major release has changes and improvements that cause little pain and research.
Upgraded the operator by following the documentation and built a custom AWX image using quay.io as base image to install our own utilities and tools including the awx CLI.
It was a bit of struggle to build the image as our environments mostly locked down to download packages off of internet.
Also we cannot run the containers as a root so installing or making changes won’t work.