ansible/roles/ntp/tasks/ntp.yml
Jan-Jonas Sämann f5cc5cea9c
Some checks failed
continuous-integration/drone/push Build is failing
Use chrony to lock kvm virtualized vm to host rtc
Chrony uses PHC via VirtIO PTP on KVM to sync the virtial mashines time to
the hosts RTC within nanoseconds. Ntpd is still used for anything else
not virtualized on kvm.
2020-09-04 18:36:50 +02:00

12 lines
210 B
YAML

---
- name: Install ntp
apt: name=ntp
- name: Configure ntp
template: src=ntp.conf.j2 dest=/etc/ntp.conf
notify: Restart ntp
- name: Start the ntp service
service: name=ntp state=started enabled=yes