win_optional_feature - support multiple feature in name (#54368)

This commit is contained in:
Jordan Borean
2019-03-28 05:26:20 +10:00
committed by GitHub
parent 9e6b6385e8
commit 9e93a84429
4 changed files with 135 additions and 38 deletions

View File

@@ -22,10 +22,10 @@ description:
options:
name:
description:
- The name of the feature to install.
- The name(s) of the feature to install.
- This relates to C(FeatureName) in the Powershell cmdlet.
- To list all available features use the PowerShell command C(Get-WindowsOptionalFeature).
type: str
type: list
required: yes
state:
description:
@@ -72,6 +72,13 @@ EXAMPLES = r'''
- name: Reboot if installing Linux Subsytem as feature requires it
win_reboot:
when: wsl_status.reboot_required
- name: Install multiple features in one task
win_optional_feature:
name:
- NetFx3
- Microsoft-Windows-Subsystem-Linux
state: present
'''
RETURN = r'''