From c4ab267afe99fe0fb2b8c1d0a6a74a6362366eba Mon Sep 17 00:00:00 2001 From: Jackson West Date: Tue, 31 Oct 2023 09:31:01 -0500 Subject: [PATCH] fixes ansible perms for imagebuilder user --- builder-base/scripts/install_ansible.sh | 2 ++ builder-base/scripts/validate_components.sh | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/builder-base/scripts/install_ansible.sh b/builder-base/scripts/install_ansible.sh index 2330a55f9..8b8e59a7b 100755 --- a/builder-base/scripts/install_ansible.sh +++ b/builder-base/scripts/install_ansible.sh @@ -50,6 +50,8 @@ function instal_ansible() { cp --preserve=links /usr/lib/libpython3* ${NEWROOT}/usr/lib fi + chmod 755 ${NEWROOT}/usr/lib/python3.9/site-packages + rm -rf /root/.cache } diff --git a/builder-base/scripts/validate_components.sh b/builder-base/scripts/validate_components.sh index f17fcba94..01fa9b56e 100755 --- a/builder-base/scripts/validate_components.sh +++ b/builder-base/scripts/validate_components.sh @@ -47,6 +47,10 @@ if [ "${FINAL_STAGE_BASE}" = "full-copy-stage" ]; then pip3 --version packer --version ansible --version + su - imagebuilder -c "ansible --version" + su - imagebuilder -c "ansible-galaxy collection list" + su - imagebuilder -c "packer --version" + su - imagebuilder -c "packer plugins installed" node --version