ansible.windows.win_product_facts module – Provides Windows product and license information
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_product_facts.
New in ansible.windows 2.7.0
Synopsis
- Provides Windows product and license information. 
Examples
- name: Get product id and product key
  ansible.windows.win_product_facts:
- name: Display Windows edition
  debug:
    var: ansible_os_license_edition
- name: Display Windows license status
  debug:
    var: ansible_os_license_status
Returned Facts
Facts returned by this module are added/updated in the hostvars host facts and can be referenced by name just like any other host fact. They do not need to be registered in order to use them.
| Key | Description | 
|---|---|
| The Windows license channel. Returned: always Sample:  | |
| The Windows license edition. Returned: always Sample:  | |
| The Windows license status. Returned: always Sample:  | |
| The Windows product ID. Returned: always Sample:  | |
| The Windows product key. Returned: always Sample:  | 
