@@ -32,12 +32,11 @@ ARG YQ_VERSION="4.40.7"
3232ARG TEA_VERSION="0.9.2"
3333
3434# As of 9/5/2024: awxkit is not compatible with python 3.12 due to setuptools
35- # Ansible-core 2.16 is needed for losing track of async jobs (as noted in AGOF for infra.controller_configuration)
35+ # Ansible-core 2.19 is needed for losing track of async jobs (as noted in AGOF for infra.controller_configuration)
3636# 'pip' will be influenced by where /usr/bin/python3 points, which we take care of with the altnernatives
3737# command
3838ARG PYTHON_VERSION="3.11"
3939ARG PYTHON_PKGS="python${PYTHON_VERSION} python${PYTHON_VERSION}-pip python3-pip"
40- ARG ANSIBLE_CORE_SPEC="ansible-core==2.16.*"
4140
4241# amd64 - arm64
4342ARG TARGETARCH
@@ -118,9 +117,14 @@ ENV PIP_BREAK_SYSTEM_PACKAGES=1
118117# Add requirements.yml file for ansible collections
119118COPY requirements.yml /tmp/requirements.yml
120119COPY requirements.txt /tmp/requirements.txt
120+ COPY ansible-playbook-wrapper.sh /tmp/ansible-playbook-wrapper.sh
121121
122122RUN pip install --no-cache-dir -r /tmp/requirements.txt && \
123123ansible-galaxy collection install --collections-path /usr/share/ansible/collections -r /tmp/requirements.yml && \
124+ # Create ansible-playbook wrapper that sets ANSIBLE_STDOUT_CALLBACK to rhvp.cluster_utils.readable when it's "null" \
125+ mv /usr/local/bin/ansible-playbook /usr/local/bin/ansible-playbook.orig && \
126+ cp /tmp/ansible-playbook-wrapper.sh /usr/local/bin/ansible-playbook && \
127+ chmod +x /usr/local/bin/ansible-playbook && \
124128rm -rf /usr/local/lib/python${PYTHON_VERSION}/site-packages/ansible_collections/$COLLECTIONS_TO_REMOVE && \
125129curl -L -O https://raw.githubusercontent.com/clumio-code/azure-sdk-trim/main/azure_sdk_trim/azure_sdk_trim.py && \
126130python3 azure_sdk_trim.py && rm azure_sdk_trim.py && pip uninstall -y humanize && \
0 commit comments