ansible.windows.win_feature_info module – Gather information about Windows features
Note
This module is part of the ansible.windows collection (version 3.2.0).
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install ansible.windows.
To use it in a playbook, specify: ansible.windows.win_feature_info.
New in ansible.windows 2.7.0
Synopsis
- Gather information about all or a specific installed Windows feature(s). 
Parameters
| Parameter | Comments | 
|---|---|
| If specified, this is used to match the  Can be a wildcard to match multiple features but the wildcard will only be matched on the  If omitted then all features will returned. Default:  | 
See Also
See also
- ansible.windows.win_feature
- Installs and uninstalls Windows Features on Windows Server. 
Examples
- name: Get info for all installed features
  ansible.windows.win_feature_info:
  register: feature_info
- name: Get info for a single feature
  ansible.windows.win_feature_info:
    name: DNS
  register: feature_info
- name: Find all features that start with 'FS'
  ansible.windows.win_feature_info:
    name: FS*
Return Values
Common return values are documented here, the following are the fields unique to this module:
| Key | Description | 
|---|---|
| Whether any features were found based on the criteria specified. Returned: always Sample:  | |
| A list of feature(s) that were found based on the criteria. Will be an empty list if no features were found. Returned: always | |
| A list of privileges that the feature requires and will run with Returned: success | |
| The action to perform once triggered, can be  Returned: success Sample:  | |
| Major Version of feature  Returned: success Sample:  | |
| Minor Version of feature  Returned: success Sample:  | |
| Numberic Id of feature  Returned: success Sample:  | |
| BestPracticesModelId for feature  Returned: success Sample:  | |
| The command line that will be run when a  Returned: success Sample:  | |
| Depth of  Returned: success Sample:  | |
| The description of the feature. Returned: success Sample:  | |
| The Display name of feature found. Returned: success Sample:  | |
| The EventQuery for feature  This will be  Returned: success Sample:  | |
| The Feature Type of  Values will be one of  Returned: success Sample:  | |
| The Install State of  Values will be one of  Returned: success Sample:  | |
| Whether the feature by  Returned: success Sample:  | |
| Name of feature found. Returned: success Sample:  | |
| The parent of feature  Returned: success Sample:  | |
| The Path of  Returned: success Sample:  | |
| Tells if Post Configuration is needed for feature  Returned: success Sample:  | |
| Descriptor of  Returned: success Sample:  | |
| List of sub features names of feature  Returned: success Sample:  | |
| The name of the service installed by feature  Returned: success Sample:  | 
