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