File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change
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.
You can’t perform that action at this time.
0 commit comments