37 lines
909 B
Python
37 lines
909 B
Python
#!/usr/bin/python
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# Copyright: (c) 2017, Dag Wieers (@dagwieers) <dag@wieers.com>
|
|
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
|
|
|
ANSIBLE_METADATA = {'metadata_version': '1.1',
|
|
'status': ['preview'],
|
|
'supported_by': 'community'}
|
|
|
|
DOCUMENTATION = r'''
|
|
---
|
|
module: win_product_facts
|
|
short_description: Provides Windows product information (product id, product key)
|
|
description:
|
|
- Provides Windows product information.
|
|
version_added: '2.5'
|
|
options: {}
|
|
author:
|
|
- Dag Wieers (@dagwieers)
|
|
'''
|
|
|
|
EXAMPLES = r'''
|
|
- name: Get product id and product key
|
|
win_product_facts:
|
|
'''
|
|
|
|
RETURN = r'''
|
|
ansible_facts:
|
|
description: returned facts by this module
|
|
returned: always
|
|
type: dict
|
|
sample:
|
|
ansible_os_product_id: 00326-10000-00000-AA698
|
|
ansible_os_product_key: T49TD-6VFBW-VV7HY-B2PXY-MY47H
|
|
'''
|