Error white installing Ansible Galaxy roles

Hi,

I have an error when running trellis up as shown below.

I’m on Mac using python 3.9.10 and ansible 2.12.5 and trellis-cli 1.7.0

If I use vagrant provision it seems to work fine (I do actually get a composer error, but I think that’s a problem in my composer file - it’s obviously installed composer to get that far).

I’d rather use the trellis-cli though, any ideas how to fix?


Error while installing Ansible Galaxy roles:

**[WARNING]: - composer was NOT installed successfully: Unknown error when**

**attempting to call Galaxy at 'https://galaxy.ansible.com/api/': <urlopen error**

**[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local**

**issuer certificate (_ssl.c:1124)>**

ERROR! - you can use --ignore-errors to skip failed roles and finish processing the list.

This may be a temporary network issue. Please try again.

Outdated CA root certificates in the root store of your workstation?

1 Like

I’m aware this is a really old thread, but I had the issue again and it’s taken me ages to fix it - so I’m putting this here for future me as much as anyone.

I seemingly fixed it using this thread: urllib certificate errors on MacOS 11.2.3 · Issue #106 · asdf-community/asdf-python · GitHub

Namely:

pip install certifi
CERT_PATH=$(python -m certifi)
export SSL_CERT_FILE=${CERT_PATH}
export REQUESTS_CA_BUNDLE=${CERT_PATH}