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:
Alan Orth 2016-08-22 12:49:00 +03:00
parent aa8735e0ea
commit d3a6e71ab8
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -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