Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ansible-galaxy error: API server not found

Tags:

ansible

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?

like image 630
Sheridaj Avatar asked Oct 15 '25 04:10

Sheridaj


2 Answers

If you use proxy, set evnironment "https_proxy" as "http://ip:port" format. not "ip:port" format.

export https_proxy=http://ip:port
like image 191
이태희 Avatar answered Oct 18 '25 06:10

이태희


I had the same issue. For me ansible was installed by pipand I had to uninstall it first:

pip uninstall ansible

Then I reinstalled it with brew

brew install ansible

After this it worked like charm.

like image 30
Robert Bokori Avatar answered Oct 18 '25 06:10

Robert Bokori