ansible / ansible.builtin / v2.6.10 / module / win_hostname Manages local Windows computer name. | "added in version" 2.6 of ansible.builtin" Authors: Ripon Banik (@riponbanik) preview | supported by communityansible.builtin.win_hostname (v2.6.10) — module
pip
Install with pip install ansible==2.6.10
Manages local Windows computer name.
A reboot is required for the computer name to take effect.
- name: Change the hostname to new_hostname win_hostname: name: new_hostname
name: description: - The hostname to set for the computer. required: true
old_name: description: The original hostname that was set before it was changed returned: always sample: old_hostname type: str reboot_required: description: Whether a reboot is required to complete the hostname change returned: always sample: true type: bool