# ansible Error while installation

**URL:** <https://forum.ansible.com/t/ansible-error-while-installation/22575>\
**Category:** Ansible Project\
**Created:** [September 17, 2016, 8:52am UTC](https://forum.ansible.com/t/ansible-error-while-installation/22575 "2016-09-17T08:52:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ramesh](https://avatars.discourse-cdn.com/v4/letter/r/d07c76/32.png) [@Ramesh](https://forum.ansible.com/u/Ramesh)\
**Post date:** [September 17, 2016, 8:52am UTC](https://forum.ansible.com/t/ansible-error-while-installation/22575/1 "2016-09-17T08:52:49Z")

</div>

Hi Here,

While Im installing the ansible on MacOS X EI Capitan, Im getting below one after installation and doing `ansible --version`

```auto
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

```

​

```auto
 

```

I can’t get the `config file` name here

Help me on fixing this.

Rameshs-MacBook-Pro:~ Ramesh$ which ansible  
/usr/local/bin/ansible

​

---

<div class="post-metadata">

**Author:** ![engcheng](https://avatars.discourse-cdn.com/v4/letter/e/9e8a1a/32.png) [@engcheng](https://forum.ansible.com/u/engcheng)\
**Post date:** [September 17, 2016, 8:59am UTC](https://forum.ansible.com/t/ansible-error-while-installation/22575/2 "2016-09-17T08:59:16Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![shameer1687](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@shameer1687](https://forum.ansible.com/u/shameer1687)\
**Post date:** [September 17, 2016, 10:26am UTC](https://forum.ansible.com/t/ansible-error-while-installation/22575/3 "2016-09-17T10:26:13Z")

</div>

how to compare two files in ansible

Thanks  
Shameer

---

<div class="post-metadata">

**Author:** ![Alexander\_H\_Laughlin](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@Alexander\_H\_Laughlin](https://forum.ansible.com/u/Alexander_H_Laughlin)\
**Post date:** [September 18, 2016, 2:37am UTC](https://forum.ansible.com/t/ansible-error-while-installation/22575/4 "2016-09-18T02:37:08Z")

</div>

```auto
Hello,

```

```auto
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

`

```auto
Here are the relevant docs:

```

```auto

```

```auto
http://docs.ansible.com/ansible/intro_configuration.html#configuration-file

```

```auto

```

```auto
Cheers mate,

```

```auto
Alex

```

---

<div class="post-metadata">

**Author:** ![engcheng](https://avatars.discourse-cdn.com/v4/letter/e/9e8a1a/32.png) [@engcheng](https://forum.ansible.com/u/engcheng)\
**Post date:** [September 19, 2016, 8:45am UTC](https://forum.ansible.com/t/ansible-error-while-installation/22575/5 "2016-09-19T08:45:02Z")

</div>

Hi Rameshs, do you have a ansible.cfg config file ready in /etc/ansible?

---

<div class="post-metadata">

**Author:** ![Ramesh](https://avatars.discourse-cdn.com/v4/letter/r/d07c76/32.png) [@Ramesh](https://forum.ansible.com/u/Ramesh)\
**Post date:** [September 27, 2016, 3:12pm UTC](https://forum.ansible.com/t/ansible-error-while-installation/22575/6 "2016-09-27T15:12:59Z")

</div>

Thanks, fixed.
