ansible.windows.win_region module – Set the region and format settings
Note
This module is part of the ansible.windows collection (version 3.2.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_region.
New in ansible.windows 2.6.0
Synopsis
- Set the location settings of a Windows Server. 
- Set the format settings of a Windows Server. 
- Set the unicode language settings of a Windows Server. 
- Copy across these settings to the default profile. 
Parameters
| Parameter | Comments | 
|---|---|
| This will copy the current format and location values to new user profiles and the welcome screen. This will only run if  Choices: 
 | |
| The language format to set for the current user, see https://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo.aspx for a list of culture names to use. This needs to be set if  | |
| The location to set for the current user, see https://msdn.microsoft.com/en-us/library/dd374073.aspx for a list of GeoIDs you can use and what location it relates to. This needs to be set if  | |
| The unicode language format to set for all users, see https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-input-locales-for-windows-language-packs for a list of culture names to use. This needs to be set if  | 
See Also
See also
- ansible.windows.win_timezone
- Sets Windows machine timezone. 
Examples
- name: Set the region format to English United States
  ansible.windows.win_region:
    format: en-US
- name: Set the region format to English Australia and copy settings to new profiles
  ansible.windows.win_region:
    format: en-AU
    copy_settings: true
- name: Set the location to United States
  ansible.windows.win_region:
    location: 244
# Reboot when region settings change
- name: Set the unicode language to English Great Britain, reboot if required
  ansible.windows.win_region:
    unicode_language: en-GB
  register: result
- ansible.windows.win_reboot:
  when: result.restart_required
# Reboot when format, location or unicode has changed
- name: Set format, location and unicode to English Australia and copy settings, reboot if required
  ansible.windows.win_region:
    location: 12
    format: en-AU
    unicode_language: en-AU
  register: result
- ansible.windows.win_reboot:
  when: result.restart_required
Return Values
Common return values are documented here, the following are the fields unique to this module:
| Key | Description | 
|---|---|
| Whether a reboot is required for the change to take effect. Returned: success Sample:  | 
