empty ansible.cfg in current directory changes the action of ansible-playbook ?

I create a simple playbook to restart rsyslog using service module.

Ansible needs a well configured ansible.cfg to work reliably. I don’t think it will fallback on defaults for everything it needs.

At least the inventory needs to be set properly.

If there is one in the current directory, it will use that, so if you make that empty, it will just miss a lot of settings it needs.

What is your point by creating an empty ansible.cfg?

Thanks, You are right. At first, I just created a ansible.cfg in my work dir to add some custom configuration in.
When I found this problem, I thouth it would be someting wrong in my ansible.cfg. So I tested it by commented lines one by one.
After all lines are commnted, the problem was still there with an empty ansible.cfg file :slight_smile:

在 2015年7月13日星期一 UTC+8下午10:34:25,Serge van Ginderachter写道: