summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabriel Muniz <gmuniz@redhat.com>2023-06-20 15:32:18 +0200
committerGitHub <noreply@github.com>2023-06-20 15:32:18 +0200
commitfb8fadc7f9f3e357d6e5db54748ad65a9559c2c6 (patch)
treeb8069d9e62c613a5967b660aaab207d202832803
parentFix PR and issue labeler job permissions (#14134) (diff)
downloadawx-fb8fadc7f9f3e357d6e5db54748ad65a9559c2c6.tar.xz
awx-fb8fadc7f9f3e357d6e5db54748ad65a9559c2c6.zip
Add new ANSIBLE_COLLECTIONS_PATH in preparation for deprecation of plural version (#14079)
-rw-r--r--awx/main/tasks/jobs.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/awx/main/tasks/jobs.py b/awx/main/tasks/jobs.py
index 5878e70604..1560005355 100644
--- a/awx/main/tasks/jobs.py
+++ b/awx/main/tasks/jobs.py
@@ -919,6 +919,7 @@ class RunJob(SourceControlMixin, BaseTask):
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)))