The Red Hat Ecosystem Catalog is the official source for discovering and learning more about the Red Hat Ecosystem of both Red Hat and certified third-party products and services.
We’re the world’s leading provider of enterprise open source solutions—including Linux, cloud, container, and Kubernetes. We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

16Modules1Plugin
A collection enabling the management of Windows Subsystem for Linux (WSL) using Ansible.
This repo hosts the microsoft.wsl Ansible Collection.
The microsoft.wsl collection enables the management of Windows Subsystem for Linux (WSL) using Ansible. This collection brings forward the possibility to manage WSL distributions and automate operator tasks on Windows systems.
System programmers can enable pipelines to setup, configure and manage WSL distributions while system administrators can automate time consuming repetitive tasks inevitably freeing up their time. New WSL users can find comfort in Ansible's familiarity and expedite their proficiency in record time.
The content in this collection is mainly designed to run on a Windows target. The target must have Powershell installed.
There are no special requirements for the Ansible controller to run this content.
This collection has been tested against following Ansible versions: >=2.16.0.
This collection supports Windows 10 and later, as well as Windows Server 2019 and later.
Before using this collection, you need to install it with the Ansible Galaxy command-line tool:
ansible-galaxy collection install microsoft.wsl
You can also include it in a requirements.yml file and install it with ansible-galaxy collection install -r requirements.yml, using the format:
collections:
- name: microsoft.wsl
Note that if you install the collection from Ansible Galaxy, it will not be upgraded automatically when you upgrade the Ansible package. To upgrade the collection to the latest available version, run the following command:
ansible-galaxy collection install microsoft.wsl --upgrade
You can also install a specific version of the collection, for example, if you need to install a different version. Use the following syntax to install version 1.0.0:
ansible-galaxy collection install microsoft.wsl:1.0.0
Flow:
microsoft.wsl.distribution)microsoft.wsl.distribution_config)microsoft.wsl.export, microsoft.wsl.import)microsoft.wsl.command)Use Case Name: Gather Information About WSL Resources
microsoft.wsl.distribution_info)microsoft.wsl.status_info)microsoft.wsl.distribution_config_info)Static analysis and coverage are tracked on SonarCloud. See docs/sonarcloud.md for CI wiring and contributor notes.
All releases will meet the following test criteria.
This community is currently accepting contributions. We encourage you to open git issues for bugs, comments or feature requests. Please feel free to submit a PR to resolve the issue.
Refer to the Ansible community guide.
News & Announcements: track project-wide announcements including social events.
The Ansible Bullhorn newsletter: used to announce releases and important changes.
For more information about communication, see the Ansible communication guide.
As Red Hat Ansible Certified Content, this collection is entitled to support through the Ansible Automation Platform (AAP) using the Create issue button on the top right corner.
If a support case cannot be opened with Red Hat and the collection has been obtained either from Galaxy or GitHub, there may community help available via: - GitHub issues for bugs or feature requests: https://github.com/ansible-collections/microsoft.wsl/issues - the Ansible Forum for general inqueries or workflow questions
A list of available releases can be found on the github release page. A changelog may be found attached to the release, or in the CHANGELOG.rst
Note, some collections release before an ansible-core version reaches End of Life (EOL), thus the version of ansible-core that is supported must be a version that is currently supported. For AAP users, to see the supported ansible-core versions, review the AAP Life Cycle. For Galaxy and GitHub users, to see the supported ansible-core versions, review the ansible-core support matrix.
The ansible.windows collection offers additional Windows automation functionality.
The community.windows collection offers additional community supported Windows functionality.
GNU General Public License v3.0 or later See LICENSE to see the full text.
| Product |
|---|
| 2.6 |
| 2.7 |
This collection is self-contained and has no external Ansible dependencies.
This collection is not being used by other collections.