Ramesh
(Ramesh)
1
Hi Here,
While Im installing the ansible on MacOS X EI Capitan, Im getting below one after installation and doing ansible --version
Rameshs-MacBook-Pro:~ Ramesh$ ansible --version
ansible 2.1.1.0
config file =
configured module search path = Default w/o overrides
Rameshs-MacBook-Pro:~ Ramesh$ which ansible
/usr/local/bin/ansible
I can’t get the config file
name here
Help me on fixing this.
Rameshs-MacBook-Pro:~ Ramesh$ which ansible
/usr/local/bin/ansible
engcheng
(engcheng)
2
Hi Ramesha,
Can you check if /etc/ansible has an “ansible.cfg” file?
If yes, do check the permission.
Else, you may hand-create the file and edit the contents.
Regards
Eng Cheng
how to compare two files in ansible
Thanks
Shameer
Hello,
If you put a config file with any of the names listed below in the directories mentioned below I believe you will find your problem solved.
`
- ANSIBLE_CONFIG (an environment variable)
- ansible.cfg (in the current directory)
- .ansible.cfg (in the home directory)
- /etc/ansible/ansible.cfg
`
Here are the relevant docs:
http://docs.ansible.com/ansible/intro_configuration.html#configuration-file
Cheers mate,
Alex
engcheng
(engcheng)
5
Hi Rameshs, do you have a ansible.cfg config file ready in /etc/ansible?