community.general/lib/ansible/modules/windows
Rich Murphey 88ccaf106b use of multiple chocolatey package names (#28046)
* use of multiple chocolatey package names

It might be helpful to users, to clarify whether/when <name:> must specify a single package.

Users who are familiar with chocolatey may be accustomed to installing multiple packages in a single invocation of 'choco install'.

I believe win_chocolatey currently accepts multiple package names when state: is latest or present.
For instance, this appears to work currently:

  - win_chocolatey:
      name: >-
        pscx
        windirstat
      state: latest

However, when state: is absent, uninstall is not performed if multiple package are specified.
The chocolate.log output suggests that chocolatey is treating the multiple packages as an 'exact' name of a single package name:
2017-08-10 19:04:04,087 2424 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" list --local-only --exact pscx windirstat
2017-08-10 19:04:04,087 2424 [DEBUG] - Received arguments: list --local-only --exact pscx windirstat

I find the current behavior helpful in terms of accepting multiple package names, even if uninstall must be treated differently.
It might be helpful to show an example of how multiple uninstalls can be handled by looping over them. 

  - win_chocolatey:
      name: "{{ item }}"
      state: absent
    with_items:
      - pscx
      - windirstat

* revise per Jordan Borean. remote colon (:) from text. revise formating.

* Update win_chocolatey.py
2017-08-11 12:36:14 +10:00
..
__init__.py package files 2016-12-08 11:22:22 -05:00
async_status.ps1 Windows async module support (#4710) 2016-12-08 11:25:02 -05:00
async_wrapper.ps1 refactoring async 2017-02-06 19:32:00 -05:00
setup.ps1 Add mac address to windows facts (#25803) 2017-08-01 11:13:19 -07:00
slurp.ps1 win_slurp: Small cleanup (#21363) 2017-02-23 22:38:17 -08:00
win_acl.ps1 win_acl: registry support for special service accounts (#26629) 2017-07-11 10:01:55 +10:00
win_acl.py E501 fixes (#22879) 2017-03-22 20:50:28 -05:00
win_acl_inheritance.ps1 win_acl_inheritance: Added tests and formatting improvements (#25382) 2017-06-19 17:47:35 +01:00
win_acl_inheritance.py E501 fixes (#22879) 2017-03-22 20:50:28 -05:00
win_chocolatey.ps1 Use ChocolateyInstall env variable after installation (#27812) 2017-08-11 11:28:13 +10:00
win_chocolatey.py use of multiple chocolatey package names (#28046) 2017-08-11 12:36:14 +10:00
win_command.ps1 win_command, win_shell: Use Fail-Json on failure (#26512) 2017-07-21 07:34:48 +10:00
win_command.py Mutually reference Windows and non-Windows modules (#25482) 2017-06-26 16:26:53 +01:00
win_copy.ps1 Small fix in the error output (#26004) 2017-06-24 21:07:23 +02:00
win_copy.py Mutually reference Windows and non-Windows modules (#25482) 2017-06-26 16:26:53 +01:00
win_defrag.ps1 win_defrag: New module to defragment local volumes (#23140) 2017-06-07 10:52:28 -07:00
win_defrag.py win_defrag: New module to defragment local volumes (#23140) 2017-06-07 10:52:28 -07:00
win_disk_image.ps1 initial commit of win_disk_image (#22175) 2017-03-01 16:31:01 -08:00
win_disk_image.py Pep8 fixes for Windows module (#24349) 2017-05-07 20:59:35 +01:00
win_dns_client.ps1 initial commit of win_dns_client module (#22016) 2017-02-27 15:48:32 -08:00
win_dns_client.py Pep8 fixes for Windows module (#24349) 2017-05-07 20:59:35 +01:00
win_domain.ps1 changed parameter name from forest_root_dns_domain to dns_domain_name (to match documentation and other win_domain* modules) and fix example which has win_domain_controller instead of win_domain for module name. (#23081) 2017-03-29 11:34:45 -07:00
win_domain.py Pep8 fixes for Windows module (#24349) 2017-05-07 20:59:35 +01:00
win_domain_controller.ps1 initial commit of win_domain_controller (#22115) 2017-02-28 19:04:52 -08:00
win_domain_controller.py Pep8 fixes for Windows module (#24349) 2017-05-07 20:59:35 +01:00
win_domain_group.ps1 win_domain_group: new module (#26682) 2017-07-20 17:08:08 -07:00
win_domain_group.py win_domain_group: new module (#26682) 2017-07-20 17:08:08 -07:00
win_domain_membership.ps1 Added ability to specify destination OU when joining a domain (#22393) 2017-07-21 10:50:54 +10:00
win_domain_membership.py Added ability to specify destination OU when joining a domain (#22393) 2017-07-21 10:50:54 +10:00
win_domain_user.ps1 New module: Add module or managing Windows Active Directory users (windows/win_domain_user) (#24075) 2017-08-11 10:23:09 +10:00
win_domain_user.py New module: Add module or managing Windows Active Directory users (windows/win_domain_user) (#24075) 2017-08-11 10:23:09 +10:00
win_dotnet_ngen.ps1 Windows: Get rid of Set-Attr in remaining modules (#23525) 2017-04-13 11:34:33 -07:00
win_dotnet_ngen.py New metadata 1.0 (#22587) 2017-03-14 09:07:22 -07:00
win_dsc.ps1 Adding more explicit module syntax (#26722) 2017-07-12 19:50:29 -04:00
win_dsc.py Fixes win_dsc docs (#26122) 2017-06-27 08:42:31 +10:00
win_environment.ps1 win_environment: Clean up, check-mode and diff support (#21356) 2017-02-24 10:34:05 +00:00
win_environment.py win_environment: Added tests and return info in document (#25064) 2017-06-08 17:39:10 +01:00
win_feature.ps1 Deprecated restart option in win_feature, added return docs 2017-05-03 17:06:02 -07:00
win_feature.py Deprecated restart option in win_feature, added return docs 2017-05-03 17:06:02 -07:00
win_file.ps1 win_file: fix error when creating an existing dir (#19070) 2017-03-17 09:33:57 -07:00
win_file.py win_file: Remove 'Create a file' example (#28009) 2017-08-10 13:30:37 -04:00
win_file_version.ps1 spelling fixes (non-trivial, changing messages) (#25094) 2017-06-01 10:45:19 +01:00
win_file_version.py New metadata 1.0 (#22587) 2017-03-14 09:07:22 -07:00
win_find.ps1 win_find: fix for empty nested directories (#26164) 2017-06-29 07:06:10 +10:00
win_find.py Mutually reference Windows and non-Windows modules (#25482) 2017-06-26 16:26:53 +01:00
win_firewall.ps1 win_firewall: check-mode support, integration tests (#25127) 2017-06-13 17:32:22 +01:00
win_firewall.py Added requires WMF5 note to win_firewall module documentations (#25676) 2017-06-14 15:10:17 +01:00
win_firewall_rule.ps1 win_firewall_rule: Implement idempotency, check-mode and diff support (#23162) 2017-05-30 16:10:33 -07:00
win_firewall_rule.py win_firewall_rule: Implement idempotency, check-mode and diff support (#23162) 2017-05-30 16:10:33 -07:00
win_get_url.ps1 win_get_url.ps1 - enable TLS1.1/TLS1.2 if they're available but disabled (#26833) 2017-08-11 11:00:34 +10:00
win_get_url.py win_get_url: Replace skip_certificate_validation with validate_certs (#26464) 2017-07-05 16:56:43 -07:00
win_group.ps1 win_group: Clean up and check-mode support (#21384) 2017-02-23 23:34:33 -08:00
win_group.py Mutually reference Windows and non-Windows modules (#25482) 2017-06-26 16:26:53 +01:00
win_group_membership.ps1 Rename win_group_member module to win_group_membership (#27614) 2017-08-02 12:06:39 +10:00
win_group_membership.py Rename win_group_member module to win_group_membership (#27614) 2017-08-02 12:06:39 +10:00
win_hotfix.ps1 win_hotfix: new module to install Windows hotfixes (#27260) 2017-08-11 07:57:07 +10:00
win_hotfix.py win_hotfix: new module to install Windows hotfixes (#27260) 2017-08-11 07:57:07 +10:00
win_iis_virtualdirectory.ps1 Relocating extras into lib/ansible/modules/ after merge 2016-12-08 11:35:18 -05:00
win_iis_virtualdirectory.py New metadata 1.0 (#22587) 2017-03-14 09:07:22 -07:00
win_iis_webapplication.ps1 Fix a typo in win_iis_webapplication.ps1 (#27417) 2017-07-28 17:24:08 +01:00
win_iis_webapplication.py win_iis_webapplication: Parameter fixes and check-mode (#26082) 2017-06-28 12:16:06 +10:00
win_iis_webapppool.ps1 win_iis_webapppool: Use Get-AnsibleParam to retrieve parameter 2017-03-23 07:42:47 -07:00
win_iis_webapppool.py Pep8 fixes for Windows module (#24349) 2017-05-07 20:59:35 +01:00
win_iis_webbinding.ps1 minor spelling changes 2016-12-13 13:51:13 -05:00
win_iis_webbinding.py New metadata 1.0 (#22587) 2017-03-14 09:07:22 -07:00
win_iis_website.ps1 minor spelling changes 2016-12-13 13:51:13 -05:00
win_iis_website.py Added example of removing the standard website and port 80 binding (#22457) 2017-03-16 14:52:28 -07:00
win_lineinfile.ps1 windows: Two simple errors using Add-Warning (#25955) 2017-06-27 09:40:16 +10:00
win_lineinfile.py E501 fixes (#22879) 2017-03-22 20:50:28 -05:00
win_mapped_drive.ps1 win_mapped_drive: new module (#27020) 2017-08-11 07:54:18 +10:00
win_mapped_drive.py win_mapped_drive: new module (#27020) 2017-08-11 07:54:18 +10:00
win_msg.ps1 win_command, win_shell: Use Fail-Json on failure (#26512) 2017-07-21 07:34:48 +10:00
win_msg.py win_msg: Added integration tests, parameter fixes (#26126) 2017-06-28 10:35:38 +10:00
win_msi.ps1 win_msi: Add check_mode and removes options (#26086) 2017-06-28 10:47:30 +10:00
win_msi.py win_msi: Add check_mode and removes options (#26086) 2017-06-28 10:47:30 +10:00
win_nssm.ps1 fixed win_nssm escaping issue (#22512) 2017-07-14 10:11:02 -07:00
win_nssm.py windows: Various small documentation fixes (#23138) 2017-05-08 18:03:56 -07:00
win_owner.ps1 win_owner: added tests and fixed up bool handling (#25088) 2017-06-19 17:43:44 +01:00
win_owner.py win_owner: added tests and fixed up bool handling (#25088) 2017-06-19 17:43:44 +01:00
win_package.ps1 Windows: Get rid of Set-Attr in remaining modules (#23525) 2017-04-13 11:34:33 -07:00
win_package.py Mutually reference Windows and non-Windows modules (#25482) 2017-06-26 16:26:53 +01:00
win_path.ps1 new module: win_path (#20073) 2017-01-17 20:21:04 -08:00
win_path.py E501 fixes (#22879) 2017-03-22 20:50:28 -05:00
win_ping.ps1 win_ping: Make full-functional 2017-01-27 13:23:01 -08:00
win_ping.py Move ping and win_ping closer together (#26028) 2017-06-28 11:08:04 -07:00
win_psexec.ps1 win_psexec: Change default for -nobanner (#24739) 2017-05-18 08:25:38 +01:00
win_psexec.py win_psexec: Change default for -nobanner (#24739) 2017-05-18 08:25:38 +01:00
win_psmodule.ps1 New module: Add module to install/remove/register/unregiser windows powershell modules (windows/win_psmodule) (#23604) 2017-06-26 23:01:38 +02:00
win_psmodule.py New module: Add module to install/remove/register/unregiser windows powershell modules (windows/win_psmodule) (#23604) 2017-06-26 23:01:38 +02:00
win_reboot.py New metadata 1.0 (#22587) 2017-03-14 09:07:22 -07:00
win_reg_stat.ps1 win_reg_stat change the module parameters for standardisation (#22732) 2017-03-23 15:15:28 -07:00
win_reg_stat.py win_reg_stat change the module parameters for standardisation (#22732) 2017-03-23 15:15:28 -07:00
win_regedit.ps1 win_regedit: rewrite to support edge cases and fix issues (#26468) 2017-07-14 09:28:49 -07:00
win_regedit.py win_regedit: rewrite to support edge cases and fix issues (#26468) 2017-07-14 09:28:49 -07:00
win_region.ps1 win_region: Small changes to Add-AnsibleParam and docs (#22310) 2017-03-08 15:58:14 +00:00
win_region.py windows: Various small documentation fixes (#23138) 2017-05-08 18:03:56 -07:00
win_regmerge.ps1 win_regmerge: Clean up parameter handling (#21388) 2017-02-16 12:41:59 +00:00
win_regmerge.py fixed RETURN docs for modules (#24011) 2017-04-26 15:56:13 +01:00
win_robocopy.ps1 win_robocopy: Small cleanup (#20515) 2017-01-24 10:40:14 -05:00
win_robocopy.py E501 fixes (#22879) 2017-03-22 20:50:28 -05:00
win_route.ps1 New module: Add module to add/remove a network static route on windows (windows/win_route) (#23405) 2017-06-07 10:25:50 -07:00
win_route.py New module: Add module to add/remove a network static route on windows (windows/win_route) (#23405) 2017-06-07 10:25:50 -07:00
win_say.ps1 win_say: Fix issue, add integration tests (#26089) 2017-06-29 06:28:44 +10:00
win_say.py win_say: Fix issue, add integration tests (#26089) 2017-06-29 06:28:44 +10:00
win_scheduled_task.ps1 win_scheduled_task: Add enhanced run option support (#24174) 2017-07-10 14:18:17 +10:00
win_scheduled_task.py win_scheduled_task: Add enhanced run option support (#24174) 2017-07-10 14:18:17 +10:00
win_security_policy.ps1 win_secedit: Added module with tests/diff mode (#26332) 2017-07-14 11:00:29 -07:00
win_security_policy.py win_secedit: Added module with tests/diff mode (#26332) 2017-07-14 11:00:29 -07:00
win_service.ps1 win_service: added support for paused services (#27216) 2017-08-01 18:48:14 +10:00
win_service.py win_service: added support for paused services (#27216) 2017-08-01 18:48:14 +10:00
win_share.ps1 win_share: Add integration tests and various fixes (#25691) 2017-06-27 12:07:22 +10:00
win_share.py win_share: Add integration tests and various fixes (#25691) 2017-06-27 12:07:22 +10:00
win_shell.ps1 win_command, win_shell: Use Fail-Json on failure (#26512) 2017-07-21 07:34:48 +10:00
win_shell.py Mutually reference Windows and non-Windows modules (#25482) 2017-06-26 16:26:53 +01:00
win_shortcut.ps1 win_shortcut: Fail when command is not absolute path (#26533) 2017-07-18 13:32:06 -07:00
win_shortcut.py win_shortcut: Fail when command is not absolute path (#26533) 2017-07-18 13:32:06 -07:00
win_stat.ps1 win_stat: add explicit error message when file is in use (#27826) 2017-08-07 12:04:42 +10:00
win_stat.py win_stat: Add stat.isreg support (#27732) 2017-08-04 13:55:58 +10:00
win_tempfile.ps1 win_tempfile: New module implementing tempfile on Windows (#21623) 2017-02-20 11:48:55 +00:00
win_tempfile.py Mutually reference Windows and non-Windows modules (#25482) 2017-06-26 16:26:53 +01:00
win_template.py Fix version_added for new option in template introduced in #21846 (#26302) 2017-06-30 22:58:56 +02:00
win_timezone.ps1 win_timezone: Add diff support, integration tests (#25284) 2017-06-14 17:34:46 +01:00
win_timezone.py win_timezone: Add diff support, integration tests (#25284) 2017-06-14 17:34:46 +01:00
win_unzip.ps1 win_unzip: Add integration tests, check-mode, various (#25335) 2017-07-19 09:54:57 +10:00
win_unzip.py win_unzip: Add integration tests, check-mode, various (#25335) 2017-07-19 09:54:57 +10:00
win_updates.ps1 fix win_updates failure with dict-typed args (#26208) 2017-06-28 16:36:53 -07:00
win_updates.py windows: Various small documentation fixes (#23138) 2017-05-08 18:03:56 -07:00
win_uri.ps1 win_uri: Add integration tests, new functionality... (#25373) 2017-06-19 17:30:08 +01:00
win_uri.py 'Response' makes more sense here than 'request' 2017-07-26 16:35:49 -07:00
win_user.ps1 Fix win_user warning message (#24263) 2017-05-04 12:53:19 -07:00
win_user.py Mutually reference Windows and non-Windows modules (#25482) 2017-06-26 16:26:53 +01:00
win_user_right.ps1 win_user_right: add module with tests (#26276) 2017-08-11 07:52:07 +10:00
win_user_right.py win_user_right: add module with tests (#26276) 2017-08-11 07:52:07 +10:00
win_wakeonlan.ps1 win_wakeonlan: New module to send Wake-On-Lan packets (#26232) 2017-07-10 07:15:22 +10:00
win_wakeonlan.py win_wakeonlan: New module to send Wake-On-Lan packets (#26232) 2017-07-10 07:15:22 +10:00
win_webpicmd.ps1 Windows: Get rid of Set-Attr in remaining modules (#23525) 2017-04-13 11:34:33 -07:00
win_webpicmd.py windows: Various small documentation fixes (#23138) 2017-05-08 18:03:56 -07:00