setting motd to use neofetch
This commit is contained in:
2
roles/setup/files/11-neofetch
Normal file
2
roles/setup/files/11-neofetch
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
neofetch
|
||||
@@ -1,5 +1,5 @@
|
||||
- name: Initial server setup
|
||||
tags: [setup, server]
|
||||
tags: [setup]
|
||||
block:
|
||||
- name: Create default user
|
||||
user:
|
||||
@@ -116,3 +116,19 @@
|
||||
- /etc/fail2ban/jail.local
|
||||
notify:
|
||||
- restart fail2ban
|
||||
|
||||
- name: Add neofetch to motd
|
||||
copy:
|
||||
src: 11-neofetch
|
||||
dest: /etc/update-motd.d/11-neofetch
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0755
|
||||
|
||||
- name: Remove default motd messages
|
||||
file:
|
||||
path: "{{ item }}"
|
||||
state: absent
|
||||
with_items:
|
||||
- /etc/update-motd.d/00-header
|
||||
- /etc/update-motd.d/10-help-text
|
||||
|
||||
Reference in New Issue
Block a user