]> birchwood-abbey.net Git - Institute.git/commitdiff
Assume one NTP setting in /etc/systemd/timesyncd.conf on campus.
authorMatt Birkholz <matt@birchwood-abbey.net>
Thu, 15 Jan 2026 21:31:48 +0000 (14:31 -0700)
committerMatt Birkholz <matt@birchwood-abbey.net>
Thu, 15 Jan 2026 21:31:48 +0000 (14:31 -0700)
README.org
roles_t/campus/tasks/main.yml

index a79ba0d797ad0cf143e76b7199ef46dd30708e77..4b4f5786a02c293347f53839a30c6025e8460c6f 100644 (file)
@@ -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.
 
index bc991b1004291172954bf29e0a63084099e5d474..2714a70dce7086c7c1ecb8f598a2d5cc6910cddc 100644 (file)
@@ -30,6 +30,7 @@
   become: yes
   lineinfile:
     path: /etc/systemd/timesyncd.conf
+    regexp: "^ *NTP *="
     line: NTP=ntp.{{ domain_priv }}
   notify: Restart systemd-timesyncd.