Commit 05f83d33 by John Jarvis

using motd.tail

ssh login is now:

```
$ ssh jarv.m.sandbox.edx.org
Welcome to Ubuntu 12.04.2 LTS (GNU/Linux 3.2.0-40-virtual x86_64)

*** /dev/xvda1 will be checked for errors at next reboot ***

*** System restart required ***
*******************************************************************
*                                                                 *
*   _   _| |\ \/ /  This system is for the use of authorized      *
* / -_) _` | >  <   users only.  Usage of this system may be      *
* \___\__,_|/_/\_\  monitoried and recorded by system personnel.  *
*                                                                 *
* Anyone using this system expressly consents to such monitoring  *
* and is advised that if such monitoring reveals possible         *
* evidence of criminal activity, system personnel may provide the *
* evidence from such monitoring to law enforcement officials.     *
*                                                                 *
*******************************************************************
Last login: Tue Feb 11 19:12:12 2014 from terminus.mit.edu
````
parent 04232301
......@@ -79,17 +79,19 @@
# and add a custom motd. These do not require an
# ssh restart
- name: update the ssh motd on Ubuntu
file: mode=0644 path=/etc/update-motd.d/{{ item }}
file: >
mode=0644
path={{ item }}
with_items:
- "10-help-text"
- "50-landscape-sysinfo"
- "51-cloudguest"
- "91-release-upgrade"
- "/etc/update-motd.d/10-help-text"
- "/usr/share/landscape/50-landscape-sysinfo"
- "/etc/update-motd.d/51-cloudguest"
- "/etc/update-motd.d/91-release-upgrade"
- name: add ssh-warning banner motd
template: >
dest=/etc/update-motd.d/500-edx
src=500-edx.j2 mode=0755 owner=root group=root
dest=/etc/motd.tail
src=motd.tail.j2 mode=0755 owner=root group=root
- name: update ssh config
template: >
......
#!/bin/sh
# {{ ansible_managed }}
#
cat <<'EOF'
*******************************************************************
* *
* _ _| |\ \/ / This system is for the use of authorized *
......@@ -14,4 +10,3 @@ cat <<'EOF'
* evidence from such monitoring to law enforcement officials. *
* *
*******************************************************************
EOF
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment