Add option to configure timezone

Timezone defaults to Europe/Berlin
main
Leo Maroni 4 years ago
parent aab0c6ba1c
commit 2b3a1281ed
No known key found for this signature in database
GPG Key ID: B1ADA545CD2CBACD

@ -4,6 +4,7 @@ users:
- { name: 'nouser', state: 'absent', public_key: '' } - { name: 'nouser', state: 'absent', public_key: '' }
system_locale: en_US.UTF-8 system_locale: en_US.UTF-8
system_timezone: "Europe/Berlin"
ssh_allow_password: no ssh_allow_password: no
base_upgrade: yes base_upgrade: yes

@ -15,3 +15,7 @@
- name: Configure locale to '{{ system_locale }}' - name: Configure locale to '{{ system_locale }}'
command: localectl set-locale LANG={{ system_locale }} command: localectl set-locale LANG={{ system_locale }}
changed_when: locale_lang != system_locale changed_when: locale_lang != system_locale
- name: Configure Timezone
timezone:
name: "{{ system_timezone }}"

Loading…
Cancel
Save