# ansible.cfg ignored in Mac OS X 10.9

**URL:** <https://forum.ansible.com/t/ansible-cfg-ignored-in-mac-os-x-10-9/14361>\
**Category:** Ansible Project\
**Created:** [January 16, 2014, 3:08pm UTC](https://forum.ansible.com/t/ansible-cfg-ignored-in-mac-os-x-10-9/14361 "2014-01-16T15:08:29Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marco\_Garces](https://avatars.discourse-cdn.com/v4/letter/m/2acd7d/32.png) [@Marco\_Garces](https://forum.ansible.com/u/Marco_Garces)\
**Post date:** [January 16, 2014, 3:08pm UTC](https://forum.ansible.com/t/ansible-cfg-ignored-in-mac-os-x-10-9/14361/1 "2014-01-16T15:08:29Z")

</div>

Hi there,

I am using ansible from github checkout _**(ansible 1.5 (devel 87e7b9e5cc) last updated 2014/01/16 15:40:55 (GMT +200))**_, and doing the normal “ **source $ANSIBLE\_HOME/hacking/env-setup** ” to get things working.  
My OS is Mac OS X 10.9 (Mavericks)

I have a small ansible project using roles, and on the root of that project, I have “ansible.cfg” with a bunch of settings.

The thing is, the config file it’s not being respected; I have tried to put it in **~/.ansible.cfg** , and also on **/etc/ansible/ansible.cfg** , but when I run “ **ansible-playbook site.yml** ” it totally ignores the config file.

Also, I have tested with the pip’s version of ansible **_(ansible 1.4.4)_**, still no sucess!  
Running my project on a CentOS 6.5 box, everything works has expected, and the config file is respected.

Is someone else having this issues, or is able to replicate my setup?

Thank you in advance!

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [January 16, 2014, 3:40pm UTC](https://forum.ansible.com/t/ansible-cfg-ignored-in-mac-os-x-10-9/14361/2 "2014-01-16T15:40:27Z")

</div>

Maybe you could share your ansible.cfg file with us? Maybe there is an issue there. I have seen some people use [default] as a section header before, however the section header is really [defaults].

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [January 16, 2014, 3:44pm UTC](https://forum.ansible.com/t/ansible-cfg-ignored-in-mac-os-x-10-9/14361/3 "2014-01-16T15:44:30Z")

</div>

Pretty sure this isn’t broke, let us know how you think it is?

---

<div class="post-metadata">

**Author:** ![Marco\_Garces](https://avatars.discourse-cdn.com/v4/letter/m/2acd7d/32.png) [@Marco\_Garces](https://forum.ansible.com/u/Marco_Garces)\
**Post date:** [January 17, 2014, 6:50am UTC](https://forum.ansible.com/t/ansible-cfg-ignored-in-mac-os-x-10-9/14361/4 "2014-01-17T06:50:44Z")

</div>

I have answered yesterday, but it seems that my answer did not got here…  
Here is my ansible.cfg:  
[https://gist.github.com/mgarces/f044f586afbbb150c254](https://gist.github.com/mgarces/f044f586afbbb150c254)

It’s a very simple one. I know it’s working when I can call **ansible-playbook** without the **-i** argument.

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [January 17, 2014, 3:14pm UTC](https://forum.ansible.com/t/ansible-cfg-ignored-in-mac-os-x-10-9/14361/5 "2014-01-17T15:14:14Z")

</div>

Yep, you had replied to me directly instead.

There’s nothing that would cause a configuration file to have any problems on OS X specifically.

You might have to do some more digging.

---

<div class="post-metadata">

**Author:** ![Marco\_Garces](https://avatars.discourse-cdn.com/v4/letter/m/2acd7d/32.png) [@Marco\_Garces](https://forum.ansible.com/u/Marco_Garces)\
**Post date:** [January 17, 2014, 3:25pm UTC](https://forum.ansible.com/t/ansible-cfg-ignored-in-mac-os-x-10-9/14361/6 "2014-01-17T15:25:00Z")

</div>

I dont know how this was fixed… but:

I did a checkout from git, for my own project, and now it works as it should.

No clue what was wrong on the other directory… =/

---

<div class="post-metadata">

**Author:** ![Trevor\_Hartman](https://avatars.discourse-cdn.com/v4/letter/t/f9ae1b/32.png) [@Trevor\_Hartman](https://forum.ansible.com/u/Trevor_Hartman)\
**Post date:** [March 4, 2014, 11:28pm UTC](https://forum.ansible.com/t/ansible-cfg-ignored-in-mac-os-x-10-9/14361/7 "2014-03-04T23:28:47Z")

</div>

I have this same problem. ansible.cfg is ignored in all places, OS X 10.9.1. I’ll post back if I get it working.  
One thing to note is if I introduce a syntax error in ./ansible.cfg, ansible immediately complains. When I remove it, ansible runs fine but ignores the actual config.

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [March 4, 2014, 11:35pm UTC](https://forum.ansible.com/t/ansible-cfg-ignored-in-mac-os-x-10-9/14361/8 "2014-03-04T23:35:53Z")

</div>

There’s nothing OS X specific about this.

Really, there is not 🙂

I suspect you may have a header that is not “defaults” so your INI file is in the wrong section or something.

Pasting your ansible.cfg contents may help.

---

<div class="post-metadata">

**Author:** ![Trevor\_Hartman](https://avatars.discourse-cdn.com/v4/letter/t/f9ae1b/32.png) [@Trevor\_Hartman](https://forum.ansible.com/u/Trevor_Hartman)\
**Post date:** [March 4, 2014, 11:37pm UTC](https://forum.ansible.com/t/ansible-cfg-ignored-in-mac-os-x-10-9/14361/9 "2014-03-04T23:37:45Z")

</div>

[default]  
hostfile = hosts  
host\_key\_checking = False  
forks = 15

---

<div class="post-metadata">

**Author:** ![Trevor\_Hartman](https://avatars.discourse-cdn.com/v4/letter/t/f9ae1b/32.png) [@Trevor\_Hartman](https://forum.ansible.com/u/Trevor_Hartman)\
**Post date:** [March 4, 2014, 11:38pm UTC](https://forum.ansible.com/t/ansible-cfg-ignored-in-mac-os-x-10-9/14361/10 "2014-03-04T23:38:57Z")

</div>

You’re right, default vs defaults typo!
