Skip to content

Commit

Permalink
Migrate win_region module to ansible.windows repo from ansible.commun…
Browse files Browse the repository at this point in the history
…ity repo
  • Loading branch information
shahargolshani committed Dec 3, 2024
1 parent 5227fcf commit 90db2c7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 8 additions & 7 deletions plugins/modules/win_region.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
- 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.
version_added: 2.6.0
options:
location:
description:
Expand All @@ -31,7 +32,7 @@
unicode_language:
description:
- The unicode language format to set for all users, see
U(https://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo.aspx)
U(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 C(location) or C(format) is not set. After setting this
value a reboot is required for it to take effect.
Expand All @@ -46,28 +47,28 @@
type: bool
default: no
seealso:
- module: community.windows.win_timezone
- module: ansible.windows.win_timezone
author:
- Jordan Borean (@jborean93)
'''

EXAMPLES = r'''
- name: Set the region format to English United States
community.windows.win_region:
ansible.windows.win_region:
format: en-US
- name: Set the region format to English Australia and copy settings to new profiles
community.windows.win_region:
ansible.windows.win_region:
format: en-AU
copy_settings: true
- name: Set the location to United States
community.windows.win_region:
ansible.windows.win_region:
location: 244
# Reboot when region settings change
- name: Set the unicode language to English Great Britain, reboot if required
community.windows.win_region:
ansible.windows.win_region:
unicode_language: en-GB
register: result
Expand All @@ -76,7 +77,7 @@
# Reboot when format, location or unicode has changed
- name: Set format, location and unicode to English Australia and copy settings, reboot if required
community.windows.win_region:
ansible.windows.win_region:
location: 12
format: en-AU
unicode_language: en-AU
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/win_timezone.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
U(https://support.microsoft.com/en-us/help/2556308/tzutil-command-line-tool-is-added-to-windows-vista-and-to-windows-server-2008)
needs to be installed to be able to run this module.
seealso:
- module: community.windows.win_region
- module: ansible.windows.win_region
author:
- Phil Schwartz (@schwartzmx)
'''
Expand Down

0 comments on commit 90db2c7

Please sign in to comment.