system/tasks/time.yml
vincent 35e5b08949
Some checks failed
continuous-integration/drone/push Build is failing
test with molecule
2022-10-09 19:43:15 +02:00

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