This works in ansible 2.0. It requires using the --ignore-certs flag. 

I simulated a proxy server using Charles Proxy. In the Charles proxy 
settings I enabled SSL Proxying for galaxy.ansible.com:443. Then I did the 
following:

$ export https_proxy=http://localhost:8888
$ ansible-galaxy --ignore-certs init my-role-foo
- my-role-foo was created successfully

>From the above I can see the request route through Charles and return a 
valid response from the API. Without --ignore-certs the init command fails. 
I think the issue is that the proxy is not forwarding the root certificate 
from galaxy.ansible.com down to the client.

Prior to 2.0 the --ignore-certs flag is not available on the init command. 
I'm looking into the code now and will submit a PR to add it.


--Chris



On Monday, January 11, 2016 at 11:00:57 AM UTC-5, Jameson Pugh wrote:
>
> On Sunday, January 10, 2016 at 2:15:37 AM UTC-5, Александр Костырев wrote:
>>
>> I've got the same problem.
>>
>
> I'm also running into this issue. I have http_proxy and https_proxy 
> variables pointing to our proxy server, and I'm able to wget and curl from 
> galaxy.ansible.com, but if I run ansible-galaxy init, I get "- the API 
> server (galaxy.ansible.com) is not responding, please try again later." 
> Is the only way I'll be able to use it at this point manually downloading? 
> Thanks.
>
> =-Jameson
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/83f25b9d-3d12-41d8-979d-8b6ead25e0be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to