From: Matt Birkholz Date: Thu, 15 Jan 2026 21:31:48 +0000 (-0700) Subject: Assume one NTP setting in /etc/systemd/timesyncd.conf on campus. X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=16387c66fa5f30e56d89d0371cbeedb4c6b67c5b;p=Institute.git Assume one NTP setting in /etc/systemd/timesyncd.conf on campus. --- 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.