mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-18 16:39:28 +00:00
fix: 修复 ansible 网关问题
This commit is contained in:
@@ -54,7 +54,7 @@ class JMSInventory:
|
||||
if gateway.private_key:
|
||||
proxy_command_list.append("-i {}".format(gateway.private_key_path))
|
||||
|
||||
proxy_command = "'-o ProxyCommand={}'".format(
|
||||
proxy_command = '-o ProxyCommand=\"{}\"'.format(
|
||||
" ".join(proxy_command_list)
|
||||
)
|
||||
return {"ansible_ssh_common_args": proxy_command}
|
||||
|
Reference in New Issue
Block a user