New in version 2.1.
parameter | required | default | choices | comments |
---|---|---|---|---|
timezone | yes | Timezone to set to. Example Central Standard Time |
- name: Set timezone to 'Romance Standard Time' (GMT+01:00) win_timezone: timezone: Romance Standard Time - name: Set timezone to 'GMT Standard Time' (GMT) win_timezone: timezone: GMT Standard Time - name: Set timezone to 'Central Standard Time' (GMT-06:00) win_timezone: timezone: Central Standard Time
Common return values are documented here Return Values, the following are the fields unique to this module:
name | description | returned | type | sample |
---|---|---|---|---|
timezone | The current timezone (possibly changed) | success | string | Central Standard Time |
previous_timezone | The previous timezone if it was changed, otherwise the existing timezone | success | string | Central Standard Time |
Note
tzutil.exe /l
and from https://msdn.microsoft.com/en-us/library/ms912391.aspx
This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.
For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Testing Ansible and Developing Modules.
© 2012–2017 Michael DeHaan
© 2017 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/win_timezone_module.html