win_hostname
Set the Windows computer name
Collection: ansible.windows
Full Name: parallax.windows.win_hostname
Aliases: ansible.windows.win_hostname, win_hostname
Synopsis
Set the Windows computer name
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| name | string | yes | Desired computer hostname |
Example
yaml
- name: Set computer name
ansible.windows.win_hostname:
name: example