add time option

This commit is contained in:
vincent 2019-04-16 16:39:04 +02:00
parent 5b0655ad5a
commit 6a0b28246f
2 changed files with 11 additions and 2 deletions

View File

@ -6,4 +6,7 @@ arch_base_timezone: Europe/Paris
arch_base_locales: [ arch_base_locales: [
"fr_FR.UTF-8", "fr_FR.UTF-8",
"en_US.UTF-8" "en_US.UTF-8"
] ]
time:
hwclock: UTC
timezone: Europe/Paris

View File

@ -3,4 +3,10 @@
command: timedatectl set-ntp true command: timedatectl set-ntp true
become: yes become: yes
args: args:
creates: /etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service creates: /etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service
- name: Set timezone and hardware clock
timezone:
hwclock: '{{ time.hwclock }}'
name: '{{ time.timezone }}'
become: yes