diff options
author | Chris Church <chris@ninemoreminutes.com> | 2015-04-09 13:29:38 -0400 |
---|---|---|
committer | Brian Coca <brian.coca+git@gmail.com> | 2015-04-16 08:47:45 -0400 |
commit | a7a218349a5f7c00c751d4835fd11190de3ef601 (patch) | |
tree | e645092973edd0f4f170a2cd37b6126fce270aaa | |
parent | 1cbc45700ee18d99696e6a01b99f89ddc676282b (diff) | |
download | ansible-a7a218349a5f7c00c751d4835fd11190de3ef601.tar.gz |
Add -ExecutionPolicy Unrestricted back, was removed by #9602.
-rw-r--r-- | lib/ansible/runner/shell_plugins/powershell.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/runner/shell_plugins/powershell.py b/lib/ansible/runner/shell_plugins/powershell.py index 50b759ae63..850b380edd 100644 --- a/lib/ansible/runner/shell_plugins/powershell.py +++ b/lib/ansible/runner/shell_plugins/powershell.py @@ -57,7 +57,7 @@ def _build_file_cmd(cmd_parts, quote_args=True): '''Build command line to run a file, given list of file name plus args.''' if quote_args: cmd_parts = ['"%s"' % x for x in cmd_parts] - return ' '.join(['&'] + cmd_parts) + return ' '.join(_common_args + ['-ExecutionPolicy', 'Unrestricted', '-File'] + cmd_parts) class ShellModule(object): |