Uniformize motd
This commit is contained in:
parent
1bcd9741f9
commit
5e738f40a7
3 changed files with 14 additions and 4 deletions
|
@ -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)"
|
||||
|
|
3
roles/baseconfig/files/update-motd.d/10-uname
Executable file
3
roles/baseconfig/files/update-motd.d/10-uname
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
# {{ ansible_managed }}
|
||||
uname -snrvm
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue