roles/common: Add a dedicated playbook for ntp tasks
Hosts with systemd should use its NTP client and explicitly remove the `ntp` packages. Hosts with older init systems should use `ntp`.
This commit is contained in:
@ -8,8 +8,7 @@
|
||||
command: /usr/bin/timedatectl set-timezone {{ timezone }}
|
||||
tags: timezone
|
||||
|
||||
- name: Enable NTP
|
||||
service: name=systemd-timesyncd enabled=yes
|
||||
- include: ntp.yml
|
||||
tags: ntp
|
||||
|
||||
- include: packages_{{ ansible_distribution }}.yml
|
||||
|
Reference in New Issue
Block a user