From 9f39bab2b877cf8be2a206091003cfdefbcb511b Mon Sep 17 00:00:00 2001 From: Shane McDonald Date: Sun, 7 Feb 2021 10:39:13 -0500 Subject: [PATCH] Quick fix for jobs failing in dev environment / VMs The other alternative here is to go all the way with https://github.com/ansible/ansible-runner/pull/617, which is proving to be difficult if not impossible. --- awx/main/tasks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index 0b915ab909..9fa0456fff 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -906,7 +906,8 @@ class BaseTask(object): image = instance.execution_environment.image params = { "container_image": image, - "process_isolation": True + "process_isolation": True, + "container_options": ['--user=root'], } if settings.AWX_PROOT_SHOW_PATHS: params['container_volume_mounts'] = []