Uniformize motd

This commit is contained in:
Alexandre Iooss 2019-05-03 15:52:50 +02:00
parent 1bcd9741f9
commit 5e738f40a7
No known key found for this signature in database
GPG key ID: 6C79278F3FCDCC02
3 changed files with 14 additions and 4 deletions

View file

@ -1,6 +1,5 @@
#!/bin/sh
# /etc/update-motd.d/00-logo
# Deployed with Aurore Ansible !
# {{ ansible_managed }}
# Pretty uptime
upSeconds="$(/usr/bin/cut -d. -f1 /proc/uptime)"

View file

@ -0,0 +1,3 @@
#!/bin/sh
# {{ ansible_managed }}
uname -snrvm

View file

@ -23,9 +23,17 @@
# Pimp my server
- name: Customize motd
copy:
src: update-motd.d/00-logo
dest: /etc/update-motd.d/00-logo
src: "update-motd.d/{{ item }}"
dest: "/etc/update-motd.d/{{ item }}"
mode: 0755
loop:
- 00-logo
- 10-uname
- name: Remove Debian warranty motd
file:
path: /etc/motd
state: absent
# Configure APT mirrors on Debian Stretch
- name: Configure APT mirrors