roles/common: Use service module to enable systemd NTP client instead of timedatectl
The `timedatectl set-ntp on` command is actually just enabling the systemd service anyways, so it's better we use Ansible's service module.
This commit is contained in:
parent
aa8735e0ea
commit
d3a6e71ab8
@ -14,7 +14,7 @@
|
||||
tags: timezone
|
||||
|
||||
- name: Enable NTP
|
||||
command: /usr/bin/timedatectl set-ntp on
|
||||
service: name=systemd-timesyncd enabled=yes
|
||||
tags: ntp
|
||||
|
||||
- include: packages_Ubuntu.yml
|
||||
|
Loading…
Reference in New Issue
Block a user