ansible.windows.win_computer_description module – Set windows description, owner and organization
Note
This module is part of the ansible.windows collection (version 3.0.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_computer_description
.
New in ansible.windows 2.7.0
Synopsis
This module sets Windows description that is shown under My Computer properties. Module also sets Windows license owner and organization. License information can be viewed by running winver commad.
Parameters
Parameter |
Comments |
---|---|
String value to apply to Windows descripton. Specify value of “” to clear the value. |
|
String value of organization that the Windows is licensed to. Specify value of “” to clear the value. |
|
String value of the persona that the Windows is licensed to. Specify value of “” to clear the value. |
Examples
- name: Set Windows description, owner and organization
ansible.windows.win_computer_description:
description: Best Box
owner: RusoSova
organization: MyOrg
register: result
- name: Set Windows description only
ansible.windows.win_computer_description:
description: This is my Windows machine
register: result
- name: Set organization and clear owner field
ansible.windows.win_computer_description:
owner: ''
organization: Black Mesa
- name: Clear organization, description and owner
ansible.windows.win_computer_description:
organization: ""
owner: ""
description: ""
register: result