mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 11:20:39 -03:30
fixed precedence on ansible.cfg
This commit is contained in:
parent
1d3bb97b07
commit
58c06d5aea
@ -106,7 +106,7 @@ def could_be_inventory(project_path, dir_path, filename):
|
||||
def read_ansible_config(project_path, variables_of_interest):
|
||||
fnames = ['/etc/ansible/ansible.cfg']
|
||||
if project_path:
|
||||
fnames.insert(0, os.path.join(project_path, 'ansible.cfg'))
|
||||
fnames.insert(1, os.path.join(project_path, 'ansible.cfg'))
|
||||
values = {}
|
||||
try:
|
||||
parser = ConfigParser()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user