From 30ddeb0feeed5a4757f1d702f3d4a5afeee90300 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 1 Sep 2023 15:42:29 -0400 Subject: [PATCH] Update MOTD automatically on boot The cron every minute was pointlessly excessive considering this doesn't actually change minute-to-minute. --- roles/base/templates/etc/cron.d/update-motd.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/base/templates/etc/cron.d/update-motd.j2 b/roles/base/templates/etc/cron.d/update-motd.j2 index 79f1e2b..980eb21 100644 --- a/roles/base/templates/etc/cron.d/update-motd.j2 +++ b/roles/base/templates/etc/cron.d/update-motd.j2 @@ -1,4 +1,4 @@ # cron file for motd # {{ ansible_managed }} -* * * * * root /bin/sh /usr/local/sbin/update-motd.sh &>/dev/null +@reboot root /bin/sh /usr/local/sbin/update-motd.sh &>/dev/null