Merge pull request #3803 from jumpserver/dev

[Update] 禁用ansible连接复用
pull/3882/head
BaiJiangJie 2020-03-20 17:55:38 +08:00 committed by GitHub
commit ac9a0c6d26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -132,6 +132,9 @@ class AdHocResultCallback(CallbackMixin, CallbackModule, CMDCallBackModule):
def display_failed_stderr(self):
pass
def set_play_context(self, context):
context.ssh_args = '-C -o ControlMaster=no'
class CommandResultCallback(AdHocResultCallback):
"""