# yum install through proxy

**URL:** <https://forum.ansible.com/t/yum-install-through-proxy/30587>\
**Category:** Ansible Project\
**Created:** [June 18, 2019, 4:40am UTC](https://forum.ansible.com/t/yum-install-through-proxy/30587 "2019-06-18T04:40:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_Bidwell](https://avatars.discourse-cdn.com/v4/letter/c/da6949/32.png) [@Chris\_Bidwell](https://forum.ansible.com/u/Chris_Bidwell)\
**Post date:** [June 18, 2019, 4:40am UTC](https://forum.ansible.com/t/yum-install-through-proxy/30587/1 "2019-06-18T04:40:01Z")

</div>

Hi all,

Is there any way to install an rpm through the yum module and direct that install through a proxy?

Thanks!  
Chris

---

<div class="post-metadata">

**Author:** ![Michael\_M1](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@Michael\_M1](https://forum.ansible.com/u/Michael_M1)\
**Post date:** [June 18, 2019, 5:10am UTC](https://forum.ansible.com/t/yum-install-through-proxy/30587/2 "2019-06-18T05:10:13Z")

</div>

Chris,

You should be able to use 'environment' keyword and set a variable for  
the proxy per:

[https://docs.ansible.com/ansible/latest/user\_guide/playbooks\_environment.html](https://docs.ansible.com/ansible/latest/user_guide/playbooks_environment.html)
