From 40f5190b3db3ed02d49e793df3ae10050fade65c Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Sat, 27 Aug 2022 22:07:23 +0200 Subject: [PATCH] Configure ntp --- machine.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/machine.yml b/machine.yml index 1c4321a..803ed4a 100644 --- a/machine.yml +++ b/machine.yml @@ -6,6 +6,20 @@ tasks: + # ---------------------------------------------------------------------------------------------- + # NTP. + # ---------------------------------------------------------------------------------------------- + + - name: Install systemd-timesyncd + apt: + name: systemd-timesyncd + + - name: Enable/start NTP + service: + name: systemd-timesyncd + state: started + enabled: yes + # ---------------------------------------------------------------------------------------------- # E-mail configuration. # ----------------------------------------------------------------------------------------------