We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I got the product id of Windows 10 with the win_product_facts module after I installed a KMS client key to Windows 10, but the id was wrong. I installed the key is W269N-WFGWX-YVC9B-4J6C9-T83GX, but I actually got R3HB7-X6HMH-F48J3-8XJVP-9QBP9. https://docs.microsoft.com/en-us/windows-server/get-started/kmsclientkeys#windows-10-all-supported-semi-annual-channel-versions
W269N-WFGWX-YVC9B-4J6C9-T83GX
R3HB7-X6HMH-F48J3-8XJVP-9QBP9
That is the following result.
192.168.10.63 | SUCCESS => { "ansible_facts": { "ansible_os_license_channel": "Volume:GVLK", "ansible_os_license_edition": "Windows(R), Professional edition", "ansible_os_license_status": "Notification", "ansible_os_product_id": "00331-10000-00001-AA171", "ansible_os_product_key": "R3HB7-X6HMH-F48J3-8XJVP-9QBP9" }, "changed": false }
I seem that the cause of the issue is the converting process of the product id has an issue.
community.windows/plugins/modules/win_product_facts.ps1
Lines 39 to 57 in ca03e76
plugins/modules/win_product_facts.ps1
# ansible --version ansible 2.10.9
# ansible-config dump --only-changed COLLECTIONS_PATHS(/root/community.windows/PR/xxx/ansible.cfg) = ['/root/community.windows/PR/xxx/collections']
Windows 10 Professional
I executed the following command.
# ansible all -i inventory.yml -m community.windows.win_product_facts -u administrator -k SSH password:
The module gets correctly the product id.
The module doesn't get correctly the product id.
The text was updated successfully, but these errors were encountered:
fix issue247 ansible-collections#247
9ea7613
win_product_facts: fix an issue that the module doesn't correctly con…
54b5f3b
…vert a product id (#251) * fix issue247 #247 * add changelog file
Successfully merging a pull request may close this issue.
SUMMARY
I got the product id of Windows 10 with the win_product_facts module after I installed a KMS client key to Windows 10, but the id was wrong.
I installed the key is
W269N-WFGWX-YVC9B-4J6C9-T83GX
, but I actually gotR3HB7-X6HMH-F48J3-8XJVP-9QBP9
.https://docs.microsoft.com/en-us/windows-server/get-started/kmsclientkeys#windows-10-all-supported-semi-annual-channel-versions
That is the following result.
I seem that the cause of the issue is the converting process of the product id has an issue.
community.windows/plugins/modules/win_product_facts.ps1
Lines 39 to 57 in ca03e76
ISSUE TYPE
COMPONENT NAME
plugins/modules/win_product_facts.ps1
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Windows 10 Professional
STEPS TO REPRODUCE
I executed the following command.
EXPECTED RESULTS
The module gets correctly the product id.
ACTUAL RESULTS
The module doesn't get correctly the product id.
The text was updated successfully, but these errors were encountered: