Show the MOTD
This commit is contained in:
parent
5fce5b2bc3
commit
ebb48f5b8b
3 changed files with 9 additions and 4 deletions
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue