community / community.windows / 2.2.0 / module / win_timezone Sets Windows machine timezone Authors: Phil Schwartz (@schwartzmx)community.windows.win_timezone (2.2.0) — module
Install with ansible-galaxy collection install community.windows:==2.2.0
collections: - name: community.windows version: 2.2.0
Sets machine time to the specified timezone.
- name: Set timezone to 'Romance Standard Time' (GMT+01:00) community.windows.win_timezone: timezone: Romance Standard Time
- name: Set timezone to 'GMT Standard Time' (GMT) community.windows.win_timezone: timezone: GMT Standard Time
- name: Set timezone to 'Central Standard Time' (GMT-06:00) community.windows.win_timezone: timezone: Central Standard Time
- name: Set timezime to Pacific Standard time and disable Daylight Saving time adjustments community.windows.win_timezone: timezone: Pacific Standard Time_dstoff
timezone: description: - Timezone to set to. - 'Example: Central Standard Time' - To disable Daylight Saving time, add the suffix C(_dstoff) on timezones that support this. required: true type: str
previous_timezone: description: The previous timezone if it was changed, otherwise the existing timezone. returned: success sample: Central Standard Time type: str timezone: description: The current timezone (possibly changed). returned: success sample: Central Standard Time type: str