From beef0306563a577162d118c5e8bdd6878b7cd210 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Thu, 29 Aug 2024 00:13:46 -0400 Subject: [PATCH] Fix ansible_lsb call on Debian 10 Fails due to empty ansible_lsb, so skip it --- roles/base/templates/usr/local/sbin/update-motd.sh.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/base/templates/usr/local/sbin/update-motd.sh.j2 b/roles/base/templates/usr/local/sbin/update-motd.sh.j2 index df82256..cbc7a5c 100755 --- a/roles/base/templates/usr/local/sbin/update-motd.sh.j2 +++ b/roles/base/templates/usr/local/sbin/update-motd.sh.j2 @@ -23,7 +23,7 @@ echo -e "> \033[1;34mNode name:\033[0m \033[01;36m$(hostname)\033[0m" >> $TMPFIL echo -e "> \033[1;34mCluster name:\033[0m \033[01;36m{{ cluster_group }}\033[0m" >> $TMPFILE echo -e "> \033[1;34mSystem type:\033[0m PVC \033[1;36m{% if is_coordinator %}coordinator{% else %}hypervisor{% endif %}\033[0m node" >> $TMPFILE echo -e "> \033[1;34mPVC version:\033[0m ${PVCVER}" >> $TMPFILE -echo -e "> \033[1;34mBase system:\033[0m {{ ansible_lsb.description }}" >> $TMPFILE +echo -e "> \033[1;34mBase system:\033[0m {{ ansible_lsb.description if ansible_lsb else 'Debian GNU/Linux' }}" >> $TMPFILE echo -e "> \033[1;34mKernel:\033[0m $(/bin/uname -vm)" >> $TMPFILE # Get machine information