1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 09:51:09 +03:00

Force scp usage instead of sftp for ad-hoc jobs

This commit is contained in:
Matthew Jones 2016-05-11 16:03:57 -04:00
parent c6eedce3d8
commit 8a0b40e478

View File

@ -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: