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?
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].
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.