community.general/lib/ansible/modules/windows
Kevin Subileau ac9d506a61 win_nssm: tests and several bug fixes (#44755)
* win_nssm: add failing tests for issue #44079

* win_nssm: use Run-Command instead of Invoke-Expression to prevent interpretation issue

Fix #44079

* win_nssm: add more failing tests

These tests highlight several issues with this module:
 * Service not started when state=started
 * Errors with app_parameters (see #25265)
 * Exception when passing several dependencies separated by comma as specified in doc

* win_nssm: fix service not started when state=started

Nssm status returns a multiline output that doesn't match any of the strict patterns in the switch statement.

* win_nssm: fix incorrect separator in doc for service dependencies

The dependencies parameter works with space as separator, but not with comma as shown in the documentation

* win_nssm: fix error with app_parameters parameter

Fix #25265

* win_nssm: add idempotence tests

* win_nssm: fix several idempotence issues and misbehaviors

Add missing space between arguments when app_parameters contains several keys.
Use Argv-ToString and Escape-Argument to improve arguments handling (parameters with quotes, backslashes or spaces).

* win_nssm: test parameters with spaces, quotes or backslashes

* win_nssm: restore comma as separator for service dependencies

Revert commit ddd4b4b

* win_nssm: restore support of string as dict form for app_parameters and remove support of literal YAML dict

* win_nssm: wrong variable in tests
2018-09-27 13:15:04 +10:00
..
__init__.py
_win_msi.py Stub out modules scheduled for 2.8 removal (#44985) 2018-08-31 16:27:32 -05:00
async_status.ps1 async: use async_dir for the async results file directory (#45461) 2018-09-20 19:37:54 +10:00
setup.ps1 win_setup: don't fail when running as non-admin and EAP is set to Stop (#46149) 2018-09-26 13:46:24 +10:00
slurp.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_acl.ps1 Add Ansible.ModuleUtils.PrivilegeUtil and converted code to use it (#43179) 2018-07-30 14:48:54 -07:00
win_acl.py
win_acl_inheritance.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_acl_inheritance.py Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_audit_policy_system.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_audit_policy_system.py Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_audit_rule.ps1
win_audit_rule.py Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_certificate_store.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_certificate_store.py Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_chocolatey.ps1 win_chocolatey: fix regression around using all as a package name (#43483) 2018-08-06 07:33:55 +10:00
win_chocolatey.py win_chocolatey: refactor module to fix bugs and add new features (#43013) 2018-07-24 07:52:13 +10:00
win_chocolatey_config.ps1 win_chocolatey_config: added module to manage Chocolatey config (#42915) 2018-07-18 10:36:59 +10:00
win_chocolatey_config.py win_chocolatey_config: added module to manage Chocolatey config (#42915) 2018-07-18 10:36:59 +10:00
win_chocolatey_feature.ps1 win_chocolatey_feature: new module (#42848) 2018-07-18 10:36:43 +10:00
win_chocolatey_feature.py win_chocolatey_feature: new module (#42848) 2018-07-18 10:36:43 +10:00
win_chocolatey_source.ps1 win_chocolatey_source: add new module to manage Chocolatey sources (#42790) 2018-07-18 10:36:21 +10:00
win_chocolatey_source.py win_chocolatey_source: add new module to manage Chocolatey sources (#42790) 2018-07-18 10:36:21 +10:00
win_command.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_command.py Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_copy.ps1 psrp: Added new Windows connection plugin (#41729) 2018-08-21 16:43:13 -07:00
win_copy.py Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_defrag.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_defrag.py Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_disk_facts.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_disk_facts.py
win_disk_image.ps1 win_disk_image: return all mount paths in return value (#44799) 2018-08-30 16:25:45 +10:00
win_disk_image.py win_disk_image: return all mount paths in return value (#44799) 2018-08-30 16:25:45 +10:00
win_dns_client.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_dns_client.py
win_domain.ps1 win_domain modules: ensure Netlogon service is still running after promotion (#43703) 2018-08-10 16:17:45 +10:00
win_domain.py Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_domain_computer.ps1 Module win_domain_computer fix delete computer with child (#44500) 2018-08-27 15:54:16 +10:00
win_domain_computer.py Correct typo in win_domain_computer doc (#42123) 2018-06-29 23:05:07 +02:00
win_domain_controller.ps1 win_domain modules: ensure Netlogon service is still running after promotion (#43703) 2018-08-10 16:17:45 +10:00
win_domain_controller.py Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_domain_group.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_domain_group.py
win_domain_membership.ps1 Fixes authentication error when ansible_user is a local account and computer is already joined to domain (#44270) 2018-09-11 13:20:45 +10:00
win_domain_membership.py
win_domain_user.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_domain_user.py Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_dotnet_ngen.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_dotnet_ngen.py
win_dsc.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_dsc.py
win_environment.ps1
win_environment.py
win_eventlog.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_eventlog.py Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_eventlog_entry.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_eventlog_entry.py Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_feature.ps1 Win deprecate 2.8 (#45473) 2018-09-11 14:23:48 +10:00
win_feature.py Win deprecate 2.8 (#45473) 2018-09-11 14:23:48 +10:00
win_file.ps1 Add Ansible.ModuleUtils.PrivilegeUtil and converted code to use it (#43179) 2018-07-30 14:48:54 -07:00
win_file.py Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_file_version.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_file_version.py Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_find.ps1 Add Ansible.ModuleUtils.PrivilegeUtil and converted code to use it (#43179) 2018-07-30 14:48:54 -07:00
win_find.py
win_firewall.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_firewall.py Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_firewall_rule.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_firewall_rule.py Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_get_url.ps1 Win deprecate 2.8 (#45473) 2018-09-11 14:23:48 +10:00
win_get_url.py win_get_url: Clarify the encoded slash issue (#45376) 2018-09-24 10:18:06 -05:00
win_group.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_group.py
win_group_membership.ps1 win_group_membership - fix random issue with CI on 2012 R2 (#45462) 2018-09-11 13:07:43 +10:00
win_group_membership.py Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_hostname.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_hostname.py I changed the document of win_hostname.py. (#43761) 2018-08-08 06:30:46 +10:00
win_hotfix.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_hotfix.py Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_iis_virtualdirectory.ps1 Windows: Get rid of remaining Get-Attr modules (#42921) 2018-07-19 05:37:07 +10:00
win_iis_virtualdirectory.py
win_iis_webapplication.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_iis_webapplication.py
win_iis_webapppool.ps1
win_iis_webapppool.py
win_iis_webbinding.ps1 windows testing - changes to accomodate future behaviour changes (#45464) 2018-09-11 13:04:23 +10:00
win_iis_webbinding.py
win_iis_website.ps1 Windows: Get rid of remaining Get-Attr modules (#42921) 2018-07-19 05:37:07 +10:00
win_iis_website.py
win_lineinfile.ps1 Switch to LiteralPath instead of Path. Closes #44508 (#44509) 2018-08-27 16:18:45 +10:00
win_lineinfile.py Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_mapped_drive.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_mapped_drive.py Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_msg.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_msg.py Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_nssm.ps1 win_nssm: tests and several bug fixes (#44755) 2018-09-27 13:15:04 +10:00
win_nssm.py win_nssm: tests and several bug fixes (#44755) 2018-09-27 13:15:04 +10:00
win_owner.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_owner.py Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_package.ps1 Win deprecate 2.8 (#45473) 2018-09-11 14:23:48 +10:00
win_package.py Win deprecate 2.8 (#45473) 2018-09-11 14:23:48 +10:00
win_pagefile.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_pagefile.py Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_path.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_path.py
win_pester.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_pester.py
win_ping.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_ping.py
win_power_plan.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_power_plan.py
win_product_facts.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_product_facts.py
win_psexec.ps1 win_psexec: fix arg handling when command contains multiple args (#44797) 2018-08-29 10:12:29 +10:00
win_psexec.py Add new session parameter to win_psexec (#44263) 2018-08-29 09:42:59 +10:00
win_psmodule.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_psmodule.py
win_rabbitmq_plugin.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_rabbitmq_plugin.py
win_reboot.py Add elapsed return value to select modules (#37969) 2018-08-31 22:20:56 +02:00
win_reg_stat.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_reg_stat.py
win_regedit.ps1 Add Ansible.ModuleUtils.PrivilegeUtil and converted code to use it (#43179) 2018-07-30 14:48:54 -07:00
win_regedit.py Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_region.ps1 Add Ansible.ModuleUtils.PrivilegeUtil and converted code to use it (#43179) 2018-07-30 14:48:54 -07:00
win_region.py
win_regmerge.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_regmerge.py Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_robocopy.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_robocopy.py Update win_robocopy.py (#38633) 2018-09-27 06:28:15 +10:00
win_route.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_route.py Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_say.ps1 win_say - fix up syntax and test issues (#45450) 2018-09-11 08:23:46 +10:00
win_say.py Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_scheduled_task.ps1 win_scheduled_task: add deprecation warning for repetition format (#45468) 2018-09-11 14:22:57 +10:00
win_scheduled_task.py win_scheduled_task: add deprecation warning for repetition format (#45468) 2018-09-11 14:22:57 +10:00
win_scheduled_task_stat.ps1 win_scheduled_task: add deprecation warning for repetition format (#45468) 2018-09-11 14:22:57 +10:00
win_scheduled_task_stat.py
win_security_policy.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_security_policy.py
win_service.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_service.py Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_share.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_share.py Fix grammar and clarify 'list' description for ABE (#44271) 2018-08-16 14:54:15 -04:00
win_shell.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_shell.py Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_shortcut.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_shortcut.py Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_stat.ps1 windows testing - changes to accomodate future behaviour changes (#45464) 2018-09-11 13:04:23 +10:00
win_stat.py Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_tempfile.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_tempfile.py Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_template.py
win_timezone.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_timezone.py
win_toast.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_toast.py Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_unzip.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_unzip.py Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_updates.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_updates.py Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_uri.ps1 Add elapsed return value to select modules (#37969) 2018-08-31 22:20:56 +02:00
win_uri.py Add elapsed return value to select modules (#37969) 2018-08-31 22:20:56 +02:00
win_user.ps1 Add Ansible.ModuleUtils.PrivilegeUtil and converted code to use it (#43179) 2018-07-30 14:48:54 -07:00
win_user.py
win_user_right.ps1 Add Ansible.ModuleUtils.PrivilegeUtil and converted code to use it (#43179) 2018-07-30 14:48:54 -07:00
win_user_right.py Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_wait_for.ps1 Add elapsed return value to select modules (#37969) 2018-08-31 22:20:56 +02:00
win_wait_for.py Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_wait_for_process.ps1 win_wait_for_process: Fixes and integration tests (#44801) 2018-08-31 03:13:51 +02:00
win_wait_for_process.py win_wait_for_process: Fixes and integration tests (#44801) 2018-08-31 03:13:51 +02:00
win_wakeonlan.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_wakeonlan.py Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_webpicmd.ps1 Windows: Add "special" parameter types to docs (#42853) 2018-07-17 14:29:05 -07:00
win_webpicmd.py
win_whoami.ps1 Add Ansible.ModuleUtils.PrivilegeUtil and converted code to use it (#43179) 2018-07-30 14:48:54 -07:00
win_whoami.py
win_xml.ps1 win_xml module for manipulating XML files on Windows (#26404) 2018-08-31 12:20:09 +10:00
win_xml.py win_xml module for manipulating XML files on Windows (#26404) 2018-08-31 12:20:09 +10:00