Introduction
community.windows is the Ansible collection that provides Windows-specific modules and plugins not included in ansible.windows, covering areas such as scheduled tasks, PowerShell module management, LAPS password retrieval, and psexec-based connections. Version 3.3.0 has been published on Ansible Galaxy and brings performance improvements to win_psmodule_info, a fix for win_psmodule module status lookups, and a fix for win_scheduled_task when running as SYSTEM.
Whats New
Minor Changes
win_psmodule_info- Added theinclude_propertiesparameter, allowing fine-grained control over which module properties are returned. This improves performance when only specific properties are needed (PR #688).win_psmodule_info- Added theskip_module_repository_infoparameter to skip querying PowerShellGet for repository-related metadata (PR #688).win_psmodule_info- The module now automatically skips expensive PowerShellGet repository lookups wheninclude_propertiesis specified without repository-related properties (PR #688).
Bugfixes
win_psmodule- Now retrieves the installation status of the requested module only, instead of all modules, which was expensive on hosts with many modules installed (PR #688).win_psmodule_info- Fixed a documentation typo, changingprocoessor_architecturetoprocessor_architecture.laps_password- Migrated away from the deprecatedto_textmethods to the new public API.psexec- Migrated away from the deprecatedto_textmethods to the new public API.win_scheduled_task- Fixed an issue when creating a new scheduled task while usingbecome_user: SYSTEM(issue #633).
Affected Components
| Component | Type | Change |
|---|---|---|
| win_psmodule_info | Module | New parameters include_properties, skip_module_repository_info; doc typo fix |
| win_psmodule | Module | Faster single-module status lookup |
| win_scheduled_task | Module | Fix for become_user: SYSTEM task creation |
| laps_password | Module | Internal to_text API migration |
| psexec | Connection plugin | Internal to_text API migration |
How to Test
Install or upgrade the collection from Ansible Galaxy and confirm the version installed.
ansible-galaxy collection install community.windows --upgrade
ansible-galaxy collection list community.windows
Verify that win_psmodule_info accepts the new parameters:
ansible-doc community.windows.win_psmodule_info | grep -A2 include_properties
ansible-doc community.windows.win_psmodule_info | grep -A2 skip_module_repository_info
For users affected by the win_scheduled_task issue, test creating a scheduled task with become_user: SYSTEM against a Windows host and confirm the task is created without error.
Conclusion
community.windows 3.3.0 focuses on performance for PowerShell module inventory tasks and resolves a real-world issue with scheduled task creation under the SYSTEM account. Users relying on win_psmodule_info in inventory or facts-gathering playbooks against hosts with many installed modules should upgrade to benefit from the reduced execution time, and anyone using become_user: SYSTEM with win_scheduled_task should apply this update.