From b0e86a1fc541cddf11ac368cf29602e304169b6b Mon Sep 17 00:00:00 2001 From: mg Date: Sat, 6 Mar 2021 15:23:36 +0100 Subject: [PATCH] deaktiviere systemd-timesyncd (#15) deaktiviere systemd-timesyncd Co-authored-by: Michael Grote Reviewed-on: https://git.mgrote.net/mg/ansible/pulls/15 Co-Authored-By: mg Co-Committed-By: mg --- roles/mgrote.ntp/README.md | 1 + roles/mgrote.ntp/tasks/main.yml | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/roles/mgrote.ntp/README.md b/roles/mgrote.ntp/README.md index d150bf93..a896bd77 100644 --- a/roles/mgrote.ntp/README.md +++ b/roles/mgrote.ntp/README.md @@ -2,6 +2,7 @@ ### Beschreibung Installiert ntp-client, setzt die Zeitserver und konfiguriert die Zeitzone. +Deaktiviert systemd-timesyncd. ### Funktioniert auf - [x] Ubuntu (>=18.04) - [x] ProxMox ()>=6.1) diff --git a/roles/mgrote.ntp/tasks/main.yml b/roles/mgrote.ntp/tasks/main.yml index 552b9318..64b61da4 100644 --- a/roles/mgrote.ntp/tasks/main.yml +++ b/roles/mgrote.ntp/tasks/main.yml @@ -1,4 +1,12 @@ --- + - name: restart ntpd + become: yes + systemd: + name: systemd-timesyncd + enabled: no + state: stopped + masked: yes + - name: install ntp packages become: yes ansible.builtin.package: