mirror of
https://github.com/ansible/awx.git
synced 2026-05-23 08:37:48 -02:30
Do not apply ANSIBLE_STANDARD_SETTINGS_FILES to job environment variables (#15962)
This commit is contained in:
@@ -319,6 +319,8 @@ class BaseTask(object):
|
|||||||
# Add ANSIBLE_* settings to the subprocess environment.
|
# Add ANSIBLE_* settings to the subprocess environment.
|
||||||
for attr in dir(settings):
|
for attr in dir(settings):
|
||||||
if attr == attr.upper() and attr.startswith('ANSIBLE_') and not attr.startswith('ANSIBLE_BASE_'):
|
if attr == attr.upper() and attr.startswith('ANSIBLE_') and not attr.startswith('ANSIBLE_BASE_'):
|
||||||
|
if attr == 'ANSIBLE_STANDARD_SETTINGS_FILES':
|
||||||
|
continue # special case intended only for dynaconf use
|
||||||
env[attr] = str(getattr(settings, attr))
|
env[attr] = str(getattr(settings, attr))
|
||||||
# Also set environment variables configured in AWX_TASK_ENV setting.
|
# Also set environment variables configured in AWX_TASK_ENV setting.
|
||||||
for key, value in settings.AWX_TASK_ENV.items():
|
for key, value in settings.AWX_TASK_ENV.items():
|
||||||
|
|||||||
Reference in New Issue
Block a user