# Proxy setup

**URL:** <https://forum.ansible.com/t/proxy-setup/16733>\
**Category:** Ansible Project\
**Tags:** galaxy-ng\
**Created:** [November 10, 2014, 3:42pm UTC](https://forum.ansible.com/t/proxy-setup/16733 "2014-11-10T15:42:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jochen\_Hinrichsen](https://avatars.discourse-cdn.com/v4/letter/j/59ef9b/32.png) [@Jochen\_Hinrichsen](https://forum.ansible.com/u/Jochen_Hinrichsen)\
**Post date:** [November 10, 2014, 3:42pm UTC](https://forum.ansible.com/t/proxy-setup/16733/1 "2014-11-10T15:42:20Z")

</div>

Dear group,

i’m trying my first baby steps in ansible, and i’m in trouble w/ regard to proxy setup. The maven playbook i’m reusing from the galaxy seems not to respect the existing environment variables http\_proxy/ https\_proxy/ ftp\_proxy. Internally, the playbook issues a get\_url to fetch the distribution. I’ve searched the docs up and down and up again, but cannot get it working.

I’m operating in the suggested directory layout (group\_vars, host\_vars), and configured the hosts that require a proxy using the ‘environment:’ key to no avail. I’m not sure

(a) why does the maven playbook, respectively get\_url not pick up the default settings from http\_proxy  
(b) what is the easiest way to configure unusable to use a proxy for certain hosts

I’m also having a hard time debugging what is going on. ‘-m setup’ shows the environment, which includes the proxy settings, but how can i check that the maven playbook picks up proxy settings, and from where?

Any hint is greatly appreciated.
