This commit is contained in:
135
2023-08-25 14:50:25 +03:00
commit fac600c19e
8 changed files with 144 additions and 0 deletions

12
handlers/main.yml Normal file
View File

@@ -0,0 +1,12 @@
---
# handlers file for systemd-timesyncd
- name: "restart systemd-timesyncd"
service:
name: systemd-timesyncd.service
state: restarted
listen: systemd-timesyncd configuration changed
- name: "write adjtime"
command: hwclock --systohc
when: (ansible_virtualization_role == "host" or ansible_virtualization_role == "NA") and write_hwclock_on_change
listen: systemd-timesyncd configuration changed