setting motd to use neofetch

This commit is contained in:
2021-03-09 18:08:21 +00:00
parent 5c2f0fa22e
commit c294e11b96
2 changed files with 19 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
#!/bin/sh
neofetch

View File

@@ -1,5 +1,5 @@
- name: Initial server setup - name: Initial server setup
tags: [setup, server] tags: [setup]
block: block:
- name: Create default user - name: Create default user
user: user:
@@ -116,3 +116,19 @@
- /etc/fail2ban/jail.local - /etc/fail2ban/jail.local
notify: notify:
- restart fail2ban - 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