Interview Prep/Ansible/Roles, Collections and Galaxy

`ERROR! Unknown error when attempting to call Galaxy at 'https://galaxy.ansible.com/api/': <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed ...>`

IntermediateTroubleshootingRoles, Collections and Galaxy
Answer

Likely causes → A corporate TLS-intercepting proxy, or a controller Python that does not trust the proxy's CA. It can also be a missing HTTPS_PROXY on a locked-down network.

Fix → Add the corporate CA to the controller's trust store. Python uses certifi or the OS bundle depending on the install, so set SSL_CERT_FILE or REQUESTS_CA_BUNDLE if needed. Export HTTPS_PROXY. On restricted networks, mirror collections into a private Automation Hub or Galaxy NG. Use --ignore-certs only for a one-off test.

Prevent → Build execution environments with the CA and the collections baked in, so runtime runs never call Galaxy.

All Ansible questions Roadmap: Ansible

More on Roles, Collections and Galaxy