Skip to content

Commit ad306e3

Browse files
Create ansible.cfg_priority
1 parent c64f265 commit ad306e3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ansible.cfg_priority

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Having multiple ansible.cfg creates confusion that which one will get use, this is a genuine questio.
2+
here is the precedence ordering starting from top to bottom.
3+
4+
👉 $ANSIBLE_CONFIG Setting environment variable for the location of ansible configuration file.
5+
👉 Using ./ansible.cfg from the current directory which is used to run the ansible playbook or adhoc command
6+
👉 ~/.ansible.cfg file present in home directory of user which is use to run the ansible command.
7+
👉 /etc/ansible/ansible.cfg default ansible.cfg file.
8+
IMP : Ansible will only use the configuration settings from the file which is found in this sequence first,
9+
it will not look for the settings in the higher sequence files if the setting is not present in the file which is chosen for deployment.

0 commit comments

Comments
 (0)