perf: 优化winrm协议网域连接支持ssh_key

This commit is contained in:
jiangweidong
2023-04-04 11:54:52 +08:00
parent cbe384161a
commit 187c1e3804
2 changed files with 6 additions and 2 deletions

View File

@@ -100,7 +100,8 @@ class JMSInventory:
if ansible_connection in ('local', 'winrm'):
host['gateway'] = {
'address': gateway.address, 'port': gateway.port,
'username': gateway.username, 'secret': gateway.password
'username': gateway.username, 'secret': gateway.password,
'private_key_path': gateway.private_key_path
}
host['jms_asset']['port'] = port
else: