1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

Add TOWER_HOST in the form of TOWER_URL_BASE to job env

This commit is contained in:
Matthew Jones 2016-12-01 12:00:58 -05:00
parent 805d4d1ed6
commit 765b7d9cc2

View File

@ -787,6 +787,7 @@ class RunJob(BaseTask):
env['ANSIBLE_STDOUT_CALLBACK'] = 'tower_display'
env['REST_API_URL'] = settings.INTERNAL_API_URL
env['REST_API_TOKEN'] = job.task_auth_token or ''
env['TOWER_HOST'] = settings.TOWER_URL_BASE
env['CALLBACK_QUEUE'] = settings.CALLBACK_QUEUE
env['CALLBACK_CONNECTION'] = settings.BROKER_URL
if getattr(settings, 'JOB_CALLBACK_DEBUG', False):