# Proxy for Cloning Git Repo

**URL:** <https://forum.ansible.com/t/proxy-for-cloning-git-repo/23987>\
**Category:** Ansible Project\
**Created:** [March 16, 2017, 5:35am UTC](https://forum.ansible.com/t/proxy-for-cloning-git-repo/23987 "2017-03-16T05:35:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Taseer\_Ahmed](https://avatars.discourse-cdn.com/v4/letter/t/bc79bd/32.png) [@Taseer\_Ahmed](https://forum.ansible.com/u/Taseer_Ahmed)\
**Post date:** [March 16, 2017, 5:35am UTC](https://forum.ansible.com/t/proxy-for-cloning-git-repo/23987/1 "2017-03-16T05:35:42Z")

</div>

Hi all,

I wanted to know if there is any way to pull git repos via a proxy when using Ansible. My setup does not have direct connection to the internet.

Any help would be greatly appreciated.

Thank you

Best Regards,  
Taseer Ahmed

---

<div class="post-metadata">

**Author:** ![Pshem\_Kowalczyk](https://avatars.discourse-cdn.com/v4/letter/p/e480ec/32.png) [@Pshem\_Kowalczyk](https://forum.ansible.com/u/Pshem_Kowalczyk)\
**Post date:** [March 16, 2017, 6:00pm UTC](https://forum.ansible.com/t/proxy-for-cloning-git-repo/23987/2 "2017-03-16T18:00:15Z")

</div>

Hi,

Have you tried setting the environmental variable HTTP\_PROXY to the point to your internal proxy server?

[http://docs.ansible.com/ansible/playbooks\_environment.html](http://docs.ansible.com/ansible/playbooks_environment.html)

kind regards  
Pshem
