chronyd: fix unit name + remove other ntp packages

This commit is contained in:
jeltz 2022-08-25 23:51:57 +02:00
parent 4b2868783f
commit b00d5bc09e
Signed by: jeltz
GPG key ID: 800882B66C0C3326
2 changed files with 10 additions and 2 deletions

View file

@ -1,6 +1,6 @@
--- ---
- name: Restart chronyd - name: Restart chronyd
systemd: systemd:
name: chronyd.service name: chrony.service
state: restarted state: restarted
... ...

View file

@ -1,4 +1,12 @@
--- ---
- name: Uninstall ntp and sntp
apt:
name:
- sntp
- ntp
- systemd-timesyncd
state: absent
- name: Install chronyd - name: Install chronyd
apt: apt:
name: chrony name: chrony
@ -18,7 +26,7 @@
- name: Enable and start chronyd - name: Enable and start chronyd
systemd: systemd:
name: chronyd.service name: chrony.service
enabled: true enabled: true
state: started state: started
... ...