15 lines
311 B
YAML
15 lines
311 B
YAML
---
|
|
- name: Enable timesync
|
|
service:
|
|
name: systemd-timesyncd.service
|
|
enabled: true
|
|
state: started
|
|
become: true
|
|
when: ansible_facts['os_family'] == 'Archlinux'
|
|
|
|
- name: Set timezone and hardware clock
|
|
timezone:
|
|
hwclock: "{{ time.hwclock }}"
|
|
name: "{{ time.timezone }}"
|
|
become: true
|