From 8a0b40e478969522fffe2eb8949e04402bc99b10 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Wed, 11 May 2016 16:03:57 -0400 Subject: [PATCH] Force scp usage instead of sftp for ad-hoc jobs --- awx/main/tasks.py | 1 + 1 file changed, 1 insertion(+) 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: