ansible-galaxy error: API server not found

Viewed 5492

I'm trying to install an ansible role through ansible-galaxy. I run the command

ansible-galaxy install nickhammond.logrotate

and get the response:

ERROR! The API server (https://galaxy.ansible.com/api/) is not responding, please try again later.

I've tried updating my version of ansible (1.9.1, 1.9.2, 2.0.1) but nothing seems to fix the problem. I can get to the API server, by just going to https://galaxy.ansible.com/api/ in my web browser. Any ideas why galaxy doesn't seem to be working for me?

5 Answers

you can skip the check of the galaxy API using the --offline option

Experienced same issue and also I was behind corporate proxy as well.'-c' option helped me to proceed further.

-c, --ignore-certs Ignore SSL certificate validation errors.

Related