This is my execution-environment.yml.
---
version: 1
build_arg_defaults:
#ansible_config: 'ansible.cfg'
dependencies:
galaxy: requirements.yml
python: requirements.txt
system: bindep.txt
additional_build_steps:
prepend:
- RUN whoami
- RUN cat /etc/os-release
append:
#- RUN python3 --version
- RUN yum install wget -y
- RUN yum install unzip -y
- RUN alternatives --set python /usr/bin/python3
- RUN unzip main.zip
#- RUN find / -name ncclient
- RUN cd hpe-cw7-ansible-main/ && cp ./for-ncclient/rpc.py /usr/local/lib/python3.8/site-packages/ncclient/operations/rpc.py && cp ./for-ncclient/manager.py /usr/local/lib/python3.8/site-packages/ncclient/manager.py
- RUN cd hpe-cw7-ansible-main/ && chmod 777 setup.py && python3 setup.py install
I created the image with the following command:
~ ansible-builder build --tag "organization"/"project-name" --container-runtime docker -f execution-environment.yml
I successfully pushed the image to my local Gitlab Container registry. I can pull the image after docker login.
But for some reason when i try to run my playbook which is supposed to use the specified execution environment it says "
Error creating pod: container failed to start, ImagePullBackOff". After googling the error message it was suggested that my image is either not available or that the credentials are wrong. But I can assure you that they are. And since I can pull the image from the host, where AWX is installed, the image is definitely available.
I'm pretty confused. Maybe there is someone who can help me?
Thanks in advance.
Kind regards