In this Wednesday blog post, I will show you how to set the time zone on managed Windows machines with Ansible.
Time Zone
Last week I showed you how to set the time zone on a Windows machine using PowerShell, which is great when you need to do it on a single machine. Today we will do the same with Ansible on multiple machines.
Ansible Playbook
With Ansible Windows time zone module (win_timeone), we can set the managed Windows time zone with a straightforward configuration that is shown below.
--- - name: " Windows TimeZone" hosts: windows tasks: - name: "Set the TimeZone" win_timezone: timezone: "AUS Eastern Standard Time"
To find your time zone please check this blog post on how to list all the available time zone.