diff --git a/awx/main/tasks.py b/awx/main/tasks.py index 681c2f7f38..06969b9388 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -1541,6 +1541,7 @@ class RunAdHocCommand(BaseTask): env['REST_API_URL'] = settings.INTERNAL_API_URL env['REST_API_TOKEN'] = ad_hoc_command.task_auth_token or '' env['CALLBACK_CONSUMER_PORT'] = str(settings.CALLBACK_CONSUMER_PORT) + env['ANSIBLE_SCP_IF_SSH'] = "True" if getattr(settings, 'JOB_CALLBACK_DEBUG', False): env['JOB_CALLBACK_DEBUG'] = '2' elif settings.DEBUG: