13 lines
301 B
YAML
13 lines
301 B
YAML
---
|
|
- name: Enable timesync
|
|
command: timedatectl set-ntp true
|
|
become: true
|
|
args:
|
|
creates: /etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service
|
|
|
|
- name: Set timezone and hardware clock
|
|
timezone:
|
|
hwclock: "{{ time.hwclock }}"
|
|
name: "{{ time.timezone }}"
|
|
become: true
|