From 786cb23f9845135ae79e4a7867a3b67852175aa8 Mon Sep 17 00:00:00 2001 From: halo Date: Fri, 1 Mar 2024 16:17:18 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96ansible=5Fwinrm?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=E8=B6=85=E6=97=B6=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/ops/ansible/inventory.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/ops/ansible/inventory.py b/apps/ops/ansible/inventory.py index 0dfa0b575..44dab9435 100644 --- a/apps/ops/ansible/inventory.py +++ b/apps/ops/ansible/inventory.py @@ -152,6 +152,7 @@ class JMSInventory: else: ansible_config['ansible_winrm_scheme'] = 'http' ansible_config['ansible_winrm_transport'] = 'ntlm' + ansible_config['ansible_winrm_connection_timeout'] = 120 return ansible_config def asset_to_host(self, asset, account, automation, protocols, platform):