2018-12-02 20:03:03 +00:00
|
|
|
---
|
|
|
|
- name: Enable timesync
|
|
|
|
command: timedatectl set-ntp true
|
|
|
|
become: yes
|
|
|
|
args:
|
2019-04-16 14:39:04 +00:00
|
|
|
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
|