# Ansible Installation into Custom Directory using Yum Repository

**URL:** <https://forum.ansible.com/t/ansible-installation-into-custom-directory-using-yum-repository/28999>\
**Category:** Ansible Project\
**Tags:** rhel\
**Created:** [November 10, 2018, 6:42pm UTC](https://forum.ansible.com/t/ansible-installation-into-custom-directory-using-yum-repository/28999 "2018-11-10T18:42:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![acharyatejaswi25](https://avatars.discourse-cdn.com/v4/letter/a/5daacb/32.png) [@acharyatejaswi25](https://forum.ansible.com/u/acharyatejaswi25)\
**Post date:** [November 10, 2018, 6:42pm UTC](https://forum.ansible.com/t/ansible-installation-into-custom-directory-using-yum-repository/28999/1 "2018-11-10T18:42:26Z")

</div>

Hi,

I have installed ansible and the version is 2.6.4 using yum repository in RHEL 6.8.By default,all the host,ansible.cfg…etc files are in “/etc/ansible” directory.Can I install it into a custom directory other than “/etc/ansible” while installing with yum repository.Using git I know we can install ansible into a custom directory but I would like to know if there is any possibility of installing ansible into a custom directory using yum repository in RHEL 6.8.

Thanks,  
Acharya Tejaswi Indurthy.

---

<div class="post-metadata">

**Author:** ![Jonathan\_Lozada\_De\_L](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@Jonathan\_Lozada\_De\_L](https://forum.ansible.com/u/Jonathan_Lozada_De_L)\
**Post date:** [November 10, 2018, 6:46pm UTC](https://forum.ansible.com/t/ansible-installation-into-custom-directory-using-yum-repository/28999/2 "2018-11-10T18:46:15Z")

</div>

Hello,

You can create a separate inventory file and have the ansible.cfg at the root of your directory. [https://docs.ansible.com/ansible/latest/installation\_guide/intro\_configuration.html](https://docs.ansible.com/ansible/latest/installation_guide/intro_configuration.html) and [https://docs.ansible.com/ansible/latest/user\_guide/intro\_inventory.html](https://docs.ansible.com/ansible/latest/user_guide/intro_inventory.html)
