mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-19 18:34:28 +00:00
perf: 优化ansible执行命令
This commit is contained in:
@@ -86,6 +86,8 @@ class CommandExecution(OrgModelMixin):
|
||||
host = self.hosts.first()
|
||||
if host and host.is_windows():
|
||||
shell = 'win_shell'
|
||||
elif host and host.is_unixlike():
|
||||
shell = 'shell'
|
||||
else:
|
||||
shell = 'raw'
|
||||
result = runner.execute(self.command, 'all', module=shell)
|
||||
|
Reference in New Issue
Block a user