Today is just for me to add a link for me to remember.
Below is a great summary of the issue and how it can be resolved when you try to build an ansible execution environment in a disconnected environment.
When you try to build an ansible execution environment, you may need to use a container repository with a self-signed certificate.
This will fail with the following error;
ERROR! Unknown error when attempting to call Galaxy at 'https://<URL>/api': <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)>
Error: error building at STEP "RUN ANSIBLE_GALAXY_DISABLE_GPG_VERIFY=1 ansible-galaxy collection install $ANSIBLE_GALAXY_CLI_COLLECTION_OPTS -r requirements.yml --collections-path "/usr/share/ansible/collections"": error while running runtime: exit status 1
This can be resolved by adding “ANSIBLE_GALAXY_CLI_COLLECTION_OPTS : “–ignore-certs” “
[svc_aap_install@AGAEALP3001264 ee-infoblox-build]$ cat execution-environment.yml
ANSIBLE_GALAXY_CLI_COLLECTION_OPTS : "--ignore-certs"
Good company in a journey makes the way seem shorter. — Izaak Walton
I have been lazy in a way that gave up on having a separate blogs then moved to Korean blog site, tistory. Then I realised that, Tistory may not be friendly for people other than Korean.
So I am giving another attempt in maintaining a blog.
I hope this time it will be different.