Add screenfetch to motd
This commit is contained in:
parent
70c95de96d
commit
0cdd675a8c
3
roles/ssh/files/etc/update-motd.d/05-screenfetch
Normal file
3
roles/ssh/files/etc/update-motd.d/05-screenfetch
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
screenfetch
|
@ -2,3 +2,5 @@
|
|||||||
- import_tasks: install.yml
|
- import_tasks: install.yml
|
||||||
|
|
||||||
- import_tasks: keys.yml
|
- import_tasks: keys.yml
|
||||||
|
|
||||||
|
- import_tasks: motd.yml
|
||||||
|
20
roles/ssh/tasks/motd.yml
Normal file
20
roles/ssh/tasks/motd.yml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
---
|
||||||
|
- become: yes
|
||||||
|
block:
|
||||||
|
- name: disable help in ubuntu
|
||||||
|
when: ansible_distribution == "Ubuntu"
|
||||||
|
file:
|
||||||
|
path: /etc/update-motd.d/10-help-text
|
||||||
|
mode: '0644'
|
||||||
|
|
||||||
|
- name: install screenfetch
|
||||||
|
apt:
|
||||||
|
update_cache: yes
|
||||||
|
pkg:
|
||||||
|
- screenfetch
|
||||||
|
|
||||||
|
- name: add screenfetch to motd
|
||||||
|
copy:
|
||||||
|
src: etc/update-motd.d/05-screenfetch
|
||||||
|
dest: /etc/update-motd.d/05-screenfetch
|
||||||
|
mode: '0755'
|
Loading…
Reference in New Issue
Block a user