# Looking for a way to use --installroot=  with the yum module

**URL:** <https://forum.ansible.com/t/looking-for-a-way-to-use-installroot-with-the-yum-module/18044>\
**Category:** Ansible Project\
**Created:** [April 21, 2015, 9:45pm UTC](https://forum.ansible.com/t/looking-for-a-way-to-use-installroot-with-the-yum-module/18044 "2015-04-21T21:45:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Scott\_Frisbie](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@Scott\_Frisbie](https://forum.ansible.com/u/Scott_Frisbie)\
**Post date:** [April 21, 2015, 9:45pm UTC](https://forum.ansible.com/t/looking-for-a-way-to-use-installroot-with-the-yum-module/18044/1 "2015-04-21T21:45:27Z")

</div>

I’m trying to keep some web software installed into a non-standard install directory. If I use the yum module as is, the software gets installed to /opt/ and I want to get it installed under /usr// . With running it on the server itself manually I can use the --installroot= flag to yum to get it to install where I want it. Is there a way to do this with the yum module?  
Thanks!  
Scott
