From c46dae885235ea1f8517b784999b9738eb0a322e Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 1 Sep 2023 15:42:20 -0400 Subject: [PATCH] Don't use (broken) ansible_lsb --- 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 1261237..dd1cb0b 100755 --- a/roles/base/templates/usr/local/sbin/update-motd.sh.j2 +++ b/roles/base/templates/usr/local/sbin/update-motd.sh.j2 @@ -7,7 +7,7 @@ set -o errexit TMPFILE=$(mktemp) TGTFILE=/run/pvc-motd.dynamic -DEBVER="({{ ansible_lsb.description }})" +DEBVER="[$( grep 'PRETTY_NAME=' /etc/os-release | awk -F'"' '{ print $2 }' )]" echo >> $TMPFILE echo "\033[01;34mParallel Virtual Cluster \033[01;36m${DEBVER}\033[0m" >> $TMPFILE