Hello,
I had an error with the SSL certificate when I tried to build the execution environment for the last lab in Chapter 10.
- Command executed:
ansible-builder build --tag hub.lab.example.com/system/ee-review-rhel8:v1.0
or
podman build -f context/Containerfile -t hub.lab.example.com/system/ee-review-rhel8:v1.0 context
- Error:
SSL certificate verify failed
- Solution:
I added this parameter to the execution-environment.yml configuration file:
version: 1
build_arg_defaults:
ANSIBLE_GALAXY_CLI_COLLECTION_OPTS: "-c"
After adding this and rebuilding the environment, everything worked perfectly!
I hope this helps anyone who encounters the same problem!
Hi,
I will keep it in mind.
Thanks for sharing!
@RMB Thanks for letting us know here. I will check and report it as well!
Hi!,
I tried again, this time I just used the podman build command to see what would happen and it worked:
[student@workstation ee-build]$ podman build -f context/Containerfile \ > -t hub.lab.example.com/system/ee-review-rhel8:v1.0 context
Maybe the problem it was just not using podman build and using the ansible-builder build command instead.
Thanks!
Roberto
@RMB glad that it is resolved for you!
I had the same issue and adding ANSIBLE_GALAXY_CLI_COLLECTION_OPTS: "-c" worked, but had to clear the _build directory in the context/
Also, out of interest, where can we find these flags in the documentation?
Thanks you
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.