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.
This commit is contained in:
Shane McDonald 2021-02-07 10:39:13 -05:00
parent 8eb4dafb17
commit 9f39bab2b8

View File

@ -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'] = []