From fac388ed7917f83795262c5923b2c56426764fd3 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Thu, 3 Nov 2022 01:39:10 -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