Ansible Installation into Custom Directory using Yum Repository

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.

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 and https://docs.ansible.com/ansible/latest/user_guide/intro_inventory.html