HI team, i had installed ansible through Yum and getting config file = none, so . . .

Rakesh Jha:
HI team, i had installed ansible through Yum and getting config file = none, so my concern is will ansible work fine or do we have any other solutions

Al West:
Ansible will still work without a cfg file being present.

Rakesh Jha:
okeys, but what about the configuration which we have to do it for further coomunication, as config file is very important

Al West:
Create it when you have something to go in it - I use ansible all the time and I don’t have a configuration file.

Sergio Corona:
You can also install ansible using python, you can create a python virtual environment and install it there

Rakesh Jha:
okey, many thanks.

Rakesh Jha:
let me try…

Manoj Kumar:
Having config file = None when running Ansible is normal if you have not created a custom configuration file. Ansible will use its default configuration values, which are usually sufficient for most use cases.

However, if you need to customize Ansible’s configuration, you can create a file called ansible.cfg in one of the following locations:

The current directory
Your home directory
/etc/ansible/
If you create an ansible.cfg file in one of these locations, Ansible will use it instead of the default configuration.

ansible.cfg

[defaults]
inventory = hosts

Rakesh Jha:
thanks