scripts/update-motd.d/99-tail
Gardouille 330399edfd
Pipe ansible_managed to comment Jinja filter
To allow multi lines in ansible_managed.
2023-02-08 16:15:03 +01:00

26 lines
449 B
Bash
Executable File

#!/bin/sh
# .. vim: foldmarker=[[[,]]]:foldmethod=marker
# {{ ansible_managed | comment }}
# Colors definition [[[
BLACK='\033[49;30m'
BLACKB='\033[49;90m'
RED='\033[0;31m'
REDB='\033[1;31m'
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
BLUE='\033[94;49m'
MAGENTA='\033[0;35m'
CYAN='\033[36;49m'
WHITE='\033[0;37m'
BOLD='\033[1m'
RESET='\033[0m'
# ]]]
printf "${BLACKB}%80s${RESET}\\n" | tr ' ' -
if [ -f /etc/motd.tail ] ; then
cat /etc/motd.tail
fi