uri module doesn't honour environment proxy #1125
Comments
Two more bits of info :
|
how did you setup environment: proxy_env ?
I looked at the code, IMHO the uri module well support proxy environment. https://github.com/ansible/ansible-modules-core/blob/devel/network/basics/uri.py#L262 https://github.com/jcgregorio/httplib2/blob/master/python2/httplib2/__init__.py#L804 https://github.com/jcgregorio/httplib2/blob/master/python2/httplib2/__init__.py#L1157 |
proxy_env is defined in a all.yml file in group_vars. Here are its values:
So both modules use the same proxy configuration. I'll run the playbook again just to be sure. |
Ran it again. Same result, sorry. |
I encountered same problem. |
👍 |
Same issue here with Ansible 1.9.2. When I define the proxy in the playbook it does not work for Workaround for me is to set the proxy in /etc/environment (on Ubuntu 12/14):
|
+1 |
This issue is caused by the old version of |
hm, I think it's problem with timeout, I don't know foreign environment, but our proxy sometimes a long react on large files. for me large timeout (Timeout for URL request) fixed all the problems. |
This should no longer be an issue. As of 2.1 the If you have further questions please stop by IRC or the mailing list:
|
When behind a proxy, the following uri task fails because the remote host cannot be resolved :
The following get_url task works (i.e. it resolves the host but fails to download contents as I can't set custom request header) :
Haven't looked at the code yet but could the uri module use the fetch_url utility method like get_url does ?
The text was updated successfully, but these errors were encountered: