community.general/lib/ansible/module_utils
Chris Church e87cf4a3cc Fixes for WinRM/PowerShell support in v2.
- Add support for inserting module args into PowerShell modules.  Fixes #11661.
- Support Windows paths containing spaces.  Applies changes from #10727 to v2.  Fixes #9999.  Should also fix ansible/ansible-modules-core#944 and ansible/ansible-modules-core#1007.
- Change how execution policy is set for running remote scripts.  Applies changes from #11092 to v2.  Also fixes ansible/ansible-modules-core#1776.
- Use codepage 65001 (UTF-8) for WinRM connection instead of default (CP437), convert command to UTF-8 and results from UTF-8.  Replaces changes from #10024.  Fixes #11198.
- Close WinRM connection when task completes.
- Use win_stat, win_file and win_copy modules instead of stat, file and copy when called from within other action plugins (only when using WinRM+PowerShell).
- Unquote Windows path arguments before passing to win_stat, win_file, win_copy and slurp modules (only when using WinRM/PowerShell).
- Check for win_ping module to determine if core modules are missing (only when using WinRM/PowerShell).
- Add stdout_lines to result from running low level commands (so stdout_lines is available when using raw/script).
- Update copy action plugin to use shell functions for joining paths and checking for trailing slash.
- Update fetch action plugin to unquote source path when using Windows paths.
- Add win_copy and win_template action plugins that inherit from copy and template.
- Support running .bat and .cmd scripts using default system encoding instead of UTF-8.
- Always send PowerShell commands as base64-encoded blobs to allow for running simple PowerShell commands via raw.
- Support running modules on Windows with interpreters other than PowerShell.
- Update integration tests to support above changes and test unicode fixes.
- Add test for win_user error from ansible/ansible-modules-core#1241 (fixed by ansible/ansible-modules-core#1774).
- Add test for additional win_stat output values (implemented by ansible/ansible-modules-core#1473).
- Add test for OS architecture and name from setup.ps1 (implemented by ansible/ansible-modules-core#1100).

All WinRM integration tests pass for me with these changes.
2015-07-31 14:38:31 -04:00
..
__init__.py Add package file. 2013-10-26 11:10:54 -04:00
a10.py A10 module improvements 2014-08-28 20:23:48 -05:00
basic.py Handle quoting of values in dict parameters 2015-07-27 12:31:05 -07:00
cloudstack.py cloudstack: fix domain name is not unique, use full path 2015-06-26 09:25:26 +02:00
database.py just a few spelling error changes 2015-04-28 09:36:42 -04:00
ec2.py Merge pull request #11591 from defionscode/boto3 2015-07-23 15:54:28 -04:00
f5.py Simplify Fully Qualified function 2015-06-03 21:19:11 +02:00
facts.py Merge pull request #11475 from nibalizer/cfacter_support 2015-07-29 22:46:21 -04:00
gce.py Google: allow for different libcloud provider to support upcoming DNS module 2014-10-29 19:57:46 +00:00
known_hosts.py Have known_hosts function use the url parameter instead of getting a specific attribute out of the module dict. 2014-12-04 11:39:35 -08:00
openstack.py Remove unneeded required_one_of for openstack 2015-05-29 13:09:45 -07:00
powershell.ps1 Fixes for WinRM/PowerShell support in v2. 2015-07-31 14:38:31 -04:00
rax.py Prevent an empty error message 2015-03-10 11:30:28 -05:00
redhat.py fixed typos found by RETF rules in PY files 2014-05-03 18:40:05 +02:00
splitter.py Insert newlines correctly when splitting literal blocks 2014-10-09 16:45:08 -05:00
urls.py Python2.4 compat fix 2015-07-27 15:34:51 -07:00
vmware.py Moving VMware Utilites module 2015-07-29 17:16:15 -04:00