From 064cb16d25f65f9afce2000d8602c1690b44bfd8 Mon Sep 17 00:00:00 2001 From: ibuler Date: Fri, 20 Mar 2020 16:45:38 +0800 Subject: [PATCH] =?UTF-8?q?[Update]=20=E7=A6=81=E7=94=A8ansible=E8=BF=9E?= =?UTF-8?q?=E6=8E=A5=E5=A4=8D=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/ops/ansible/callback.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/ops/ansible/callback.py b/apps/ops/ansible/callback.py index c30e6428b..3c2fe1b90 100644 --- a/apps/ops/ansible/callback.py +++ b/apps/ops/ansible/callback.py @@ -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): """