set GMT +1 by default

This commit is contained in:
L3D 2024-02-25 20:59:14 +01:00
parent eb078477b0
commit cf24cdb5c2
Signed by: l3d
GPG key ID: CD08445BFF4313D1
4 changed files with 13 additions and 1 deletions

View file

@ -1,3 +1,5 @@
# ansible_role_win_time
Ansible role to Set Timezone in Windows
Ansible role to Set Timezone in Windows
By default, we will use the 'Romance Standard Time' (GMT+01:00), bt you can modify it with the ``win_time__timezone`` variable.

2
defaults/main.yml Normal file
View file

@ -0,0 +1,2 @@
---
win_time__timezone: 'Romance Standard Time'

4
tasks/main.yml Normal file
View file

@ -0,0 +1,4 @@
---
- name: Set timezone
ansible.builtin.import_tasks:
file: timezone.yml

4
tasks/timezone.yml Normal file
View file

@ -0,0 +1,4 @@
---
- name: "Set timezone to {{ win_time__timezone }}"
community.windows.win_timezone:
timezone: "{{ win_time__timezone }}"