You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Installs or uninstalls Windows Roles or Features on Windows Server.
This module uses the Add/Remove-WindowsFeature Cmdlets on Windows 2008 R2 and Install/Uninstall-WindowsFeature Cmdlets on Windows 2012, which are not available on client os machines.
.. seealso::
:ref:`chocolatey.chocolatey.win_chocolatey_module`
The official documentation on the **chocolatey.chocolatey.win_chocolatey** module.
:ref:`ansible.windows.win_package_module`
The official documentation on the **ansible.windows.win_package** module.
Common return values are documented here, the following are the fields unique to this module:
Key
Returned
Description
exitcode
string
always
The stringified exit code from the feature installation/removal command.
Sample:
Success
feature_result
complex
success
List of features that were installed or removed.
display_name
string
always
Feature display name.
Sample:
Telnet Client
id
integer
always
A list of KB article IDs that apply to the update.
Sample:
44
message
list
/ elements=string
always
Any messages returned from the feature subsystem that occurred during installation or removal of this feature.
reboot_required
boolean
always
True when the target server requires a reboot as a result of installing or removing this feature.
Sample:
True
restart_needed
boolean
always
DEPRECATED in Ansible 2.4 (refer to reboot_required instead). True when the target server requires a reboot as a result of installing or removing this feature.
Sample:
True
skip_reason
string
always
The reason a feature installation or removal was skipped.
Sample:
NotSkipped
success
boolean
always
If the feature installation or removal was successful.
Sample:
True
reboot_required
boolean
success
True when the target server indicates a reboot is required (no further updates can be installed until after a reboot).
This my be true even if not change had occurred as the value is derived from the server state.