mirror of
https://github.com/ansible/awx.git
synced 2026-02-22 05:30:18 -03:30
Force scp usage instead of sftp for ad-hoc jobs
This commit is contained in:
@@ -1541,6 +1541,7 @@ class RunAdHocCommand(BaseTask):
|
|||||||
env['REST_API_URL'] = settings.INTERNAL_API_URL
|
env['REST_API_URL'] = settings.INTERNAL_API_URL
|
||||||
env['REST_API_TOKEN'] = ad_hoc_command.task_auth_token or ''
|
env['REST_API_TOKEN'] = ad_hoc_command.task_auth_token or ''
|
||||||
env['CALLBACK_CONSUMER_PORT'] = str(settings.CALLBACK_CONSUMER_PORT)
|
env['CALLBACK_CONSUMER_PORT'] = str(settings.CALLBACK_CONSUMER_PORT)
|
||||||
|
env['ANSIBLE_SCP_IF_SSH'] = "True"
|
||||||
if getattr(settings, 'JOB_CALLBACK_DEBUG', False):
|
if getattr(settings, 'JOB_CALLBACK_DEBUG', False):
|
||||||
env['JOB_CALLBACK_DEBUG'] = '2'
|
env['JOB_CALLBACK_DEBUG'] = '2'
|
||||||
elif settings.DEBUG:
|
elif settings.DEBUG:
|
||||||
|
|||||||
Reference in New Issue
Block a user