mirror of
https://github.com/ansible/awx.git
synced 2026-05-10 19:07:36 -02:30
Merge pull request #11394 from notok/cfg_from_template_branch
Load ansible.cfg from the branch specified on job template
This commit is contained in:
@@ -1708,7 +1708,7 @@ class RunJob(BaseTask):
|
|||||||
('ANSIBLE_ROLES_PATH', 'roles_path', 'requirements_roles', '~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles'),
|
('ANSIBLE_ROLES_PATH', 'roles_path', 'requirements_roles', '~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles'),
|
||||||
)
|
)
|
||||||
|
|
||||||
config_values = read_ansible_config(job.project.get_project_path(), list(map(lambda x: x[1], path_vars)))
|
config_values = read_ansible_config(os.path.join(private_data_dir, 'project'), list(map(lambda x: x[1], path_vars)))
|
||||||
|
|
||||||
for env_key, config_setting, folder, default in path_vars:
|
for env_key, config_setting, folder, default in path_vars:
|
||||||
paths = default.split(':')
|
paths = default.split(':')
|
||||||
|
|||||||
Reference in New Issue
Block a user