From 16387c66fa5f30e56d89d0371cbeedb4c6b67c5b Mon Sep 17 00:00:00 2001 From: Matt Birkholz Date: Thu, 15 Jan 2026 14:31:48 -0700 Subject: [PATCH] Assume one NTP setting in /etc/systemd/timesyncd.conf on campus. --- README.org | 1 + roles_t/campus/tasks/main.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/README.org b/README.org index a79ba0d..4b4f578 100644 --- a/README.org +++ b/README.org @@ -5537,6 +5537,7 @@ and file timestamps. become: yes lineinfile: path: /etc/systemd/timesyncd.conf + regexp: "^ *NTP *=" line: NTP=ntp.{{ domain_priv }} notify: Restart systemd-timesyncd. diff --git a/roles_t/campus/tasks/main.yml b/roles_t/campus/tasks/main.yml index bc991b1..2714a70 100644 --- a/roles_t/campus/tasks/main.yml +++ b/roles_t/campus/tasks/main.yml @@ -30,6 +30,7 @@ become: yes lineinfile: path: /etc/systemd/timesyncd.conf + regexp: "^ *NTP *=" line: NTP=ntp.{{ domain_priv }} notify: Restart systemd-timesyncd. -- 2.47.3