From 4ce7116d40b37ac8acbe884cabe50fefb03af873 Mon Sep 17 00:00:00 2001 From: pgrondek Date: Wed, 3 Jun 2020 19:54:15 +0200 Subject: [PATCH] Change screenfetch to neofetch --- roles/ssh/files/etc/update-motd.d/05-neofetch | 3 +++ .../files/etc/update-motd.d/05-screenfetch | 3 --- roles/ssh/tasks/motd.yml | 20 +++++++++++++++---- 3 files changed, 19 insertions(+), 7 deletions(-) create mode 100644 roles/ssh/files/etc/update-motd.d/05-neofetch delete mode 100644 roles/ssh/files/etc/update-motd.d/05-screenfetch diff --git a/roles/ssh/files/etc/update-motd.d/05-neofetch b/roles/ssh/files/etc/update-motd.d/05-neofetch new file mode 100644 index 0000000..66bcb87 --- /dev/null +++ b/roles/ssh/files/etc/update-motd.d/05-neofetch @@ -0,0 +1,3 @@ +#!/usr/bin/env sh + +neofetch diff --git a/roles/ssh/files/etc/update-motd.d/05-screenfetch b/roles/ssh/files/etc/update-motd.d/05-screenfetch deleted file mode 100644 index d9e42f4..0000000 --- a/roles/ssh/files/etc/update-motd.d/05-screenfetch +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env bash - -screenfetch diff --git a/roles/ssh/tasks/motd.yml b/roles/ssh/tasks/motd.yml index 6211141..dc06265 100644 --- a/roles/ssh/tasks/motd.yml +++ b/roles/ssh/tasks/motd.yml @@ -7,14 +7,26 @@ path: /etc/update-motd.d/10-help-text mode: '0644' - - name: install screenfetch + - name: install neofetch apt: update_cache: yes pkg: - - screenfetch + - neofetch - name: add screenfetch to motd copy: - src: etc/update-motd.d/05-screenfetch - dest: /etc/update-motd.d/05-screenfetch + src: etc/update-motd.d/05-neofetch + dest: /etc/update-motd.d/05-neofetch mode: '0755' + + - name: uninstall screenfetch + apt: + update_cache: yes + state: absent + pkg: + - screenfetch + + - name: remove screenfetch from motd + file: + path: /etc/update-motd.d/05-screenfetch + state: absent