system/tasks/time.yml

15 lines
311 B
YAML
Raw Normal View History

2018-12-02 20:03:03 +00:00
---
- name: Enable timesync
2022-10-09 17:43:15 +00:00
service:
name: systemd-timesyncd.service
enabled: true
state: started
2022-02-13 08:40:15 +00:00
become: true
2022-10-09 17:43:15 +00:00
when: ansible_facts['os_family'] == 'Archlinux'
2019-04-16 14:39:04 +00:00
- name: Set timezone and hardware clock
timezone:
2022-02-13 08:40:15 +00:00
hwclock: "{{ time.hwclock }}"
name: "{{ time.timezone }}"
become: true