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?
If you use proxy, set evnironment "https_proxy" as "http://ip:port" format. not "ip:port" format.
export https_proxy=http://ip:port
I had the same issue. For me ansible was installed by pip
and I had to uninstall it first:
pip uninstall ansible
Then I reinstalled it with brew
brew install ansible
After this it worked like charm.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With