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
|
case $- in
|
||||||
*i*)
|
*i*)
|
||||||
# Shell is interactive
|
# 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"
|
printf "\033[7m"
|
||||||
uname -sr
|
uname -sr
|
||||||
printf "\033[0m"
|
printf "\033[0m"
|
||||||
|
|
|
@ -7,10 +7,10 @@
|
||||||
copy:
|
copy:
|
||||||
src: gitconfig
|
src: gitconfig
|
||||||
dest: "{{ ansible_env.HOME }}/.gitconfig"
|
dest: "{{ ansible_env.HOME }}/.gitconfig"
|
||||||
- name: Copy .hushlogin
|
- name: Remove .hushlogin
|
||||||
copy:
|
file:
|
||||||
src: hushlogin
|
path: "{{ ansible_env.HOME }}/.hushlogin"
|
||||||
dest: "{{ ansible_env.HOME }}/.hushlogin"
|
state: absent
|
||||||
- name: Copy .inputrc
|
- name: Copy .inputrc
|
||||||
copy:
|
copy:
|
||||||
src: inputrc
|
src: inputrc
|
||||||
|
|
Loading…
Reference in a new issue