[noUsing ansible.cfg in working directory?

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.

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?