Show the MOTD

This commit is contained in:
Anthony Rose 2019-11-25 11:01:39 +00:00
parent 5fce5b2bc3
commit ebb48f5b8b
3 changed files with 9 additions and 4 deletions

View file

@ -222,6 +222,11 @@ fi
case $- in
*i*)
# Shell is interactive
if ! test -f .hushlogin && test -r /etc/motd; then
echo "---- BEGIN MOTD ----"
cat /etc/motd
echo "----- END MOTD -----"
fi
printf "\033[7m"
uname -sr
printf "\033[0m"

View file

@ -7,10 +7,10 @@
copy:
src: gitconfig
dest: "{{ ansible_env.HOME }}/.gitconfig"
- name: Copy .hushlogin
copy:
src: hushlogin
dest: "{{ ansible_env.HOME }}/.hushlogin"
- name: Remove .hushlogin
file:
path: "{{ ansible_env.HOME }}/.hushlogin"
state: absent
- name: Copy .inputrc
copy:
src: inputrc