Why do I receive "ERROR: Command errored out with exit status 128: git clone" when using ansible-builder
Issue
Unable to complete the installation step of community.vmware via ansible-builder in a disconnected environment. The build process halts with the following error:
[1/4] STEP 15/16: RUN pip3 install --upgrade git+https://github.com/vmware/vsphere-automation-sdk-python.git
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Collecting git+https://github.com/vmware/vsphere-automation-sdk-python.git
Cloning https://github.com/vmware/vsphere-automation-sdk-python.git to /tmp/pip-req-build-evb0abqn
ERROR! Unknown error when attempting to call Galaxy at 'https://galaxy.ansible.com/api/': <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)>. <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)>
Error: building at STEP "RUN ansible-galaxy collection install community.vmware": while running runtime: exit status 1
Environment
- Red Hat Ansible Automation Platform
- 2.x
- ansible-builder
- 3.0.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.