# \[noUsing ansible.cfg in working directory?

**URL:** <https://forum.ansible.com/t/nousing-ansible-cfg-in-working-directory/24823>\
**Category:** Ansible Project\
**Created:** [June 26, 2017, 4:57pm UTC](https://forum.ansible.com/t/nousing-ansible-cfg-in-working-directory/24823 "2017-06-26T16:57:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LeamHall](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/leamhall/32/9390_2.png) [@LeamHall](https://forum.ansible.com/u/LeamHall)\
**Post date:** [June 26, 2017, 4:57pm UTC](https://forum.ansible.com/t/nousing-ansible-cfg-in-working-directory/24823/1 "2017-06-26T16:57:45Z")

</div>

I’m setting up multiple teams to use one ansible host. The idea is that each team has an ansible “user” that has team playbooks, ansible.cfg file, and hosts files.

The directory I’m working in is ~ansible/lang/ansible

### File: ansible.cfg

[defaults]  
become\_ask\_pass=True

### FIle: server\_info/hosts

[all]  
anstest01

### File: playbooks/rhel\_patching.yml #starts.

---

<div class="post-metadata">

**Author:** ![Daniel\_JD](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@Daniel\_JD](https://forum.ansible.com/u/Daniel_JD)\
**Post date:** [June 26, 2017, 8:10pm UTC](https://forum.ansible.com/t/nousing-ansible-cfg-in-working-directory/24823/2 "2017-06-26T20:10:58Z")

</div>

Is your $ANSIBLE\_CONFIG Variable set? Ansible will look for the first file in this order (the variable, current dir, homdir, etc/ansible).

Are you standing exactly at the same position where the ansible.cfg is?

Otherwise it should work?
