mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Complete rewrite of Windows exec wrapper (#21510)
* supports pipelining for faster execution * supports become (runas), creates interactive subsession under WinRM batch logon * supports usage of arbitrary module_utils files * modular exec wrapper payload supports easier extension * integrates async wrapper behavior for pipelined/become'd async * module_utils are loaded as true Powershell modules, no more runtime modifications to module code
This commit is contained in:
@@ -172,3 +172,7 @@ class ShellBase(object):
|
||||
cmd += ' %s %s' % (self._SHELL_AND, cmd_to_append)
|
||||
|
||||
return cmd
|
||||
|
||||
def wrap_for_exec(self, cmd):
|
||||
"""wrap script execution with any necessary decoration (eg '&' for quoted powershell script paths)"""
|
||||
return cmd
|
||||
|
||||
Reference in New Issue
Block a user