Skip to content

Commit

Permalink
Add new ANSIBLE_COLLECTIONS_PATH in preparation for deprecation of pl…
Browse files Browse the repository at this point in the history
…ural version (#14079)
  • Loading branch information
Gabriel Muniz authored Jun 20, 2023
1 parent ba99ddf commit fb8fadc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions awx/main/tasks/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -919,6 +919,7 @@ def build_env(self, job, private_data_dir, private_data_files=None):
path_vars = (
('ANSIBLE_COLLECTIONS_PATHS', 'collections_paths', 'requirements_collections', '~/.ansible/collections:/usr/share/ansible/collections'),
('ANSIBLE_ROLES_PATH', 'roles_path', 'requirements_roles', '~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles'),
('ANSIBLE_COLLECTIONS_PATH', 'collections_path', 'requirements_collections', '~/.ansible/collections:/usr/share/ansible/collections'),
)

config_values = read_ansible_config(os.path.join(private_data_dir, 'project'), list(map(lambda x: x[1], path_vars)))
Expand Down

0 comments on commit fb8fadc

Please sign in to comment.