chore: add motd to base role
This commit is contained in:
parent
5377c34709
commit
172665d237
2 changed files with 18 additions and 0 deletions
|
|
@ -61,3 +61,11 @@
|
||||||
state: started
|
state: started
|
||||||
enabled: true
|
enabled: true
|
||||||
when: ansible_virtualization_type != "docker"
|
when: ansible_virtualization_type != "docker"
|
||||||
|
|
||||||
|
- name: Set custom MOTD
|
||||||
|
ansible.builtin.template:
|
||||||
|
src: motd.j2
|
||||||
|
dest: /etc/motd
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: '0644'
|
||||||
|
|
|
||||||
10
roles/base/templates/motd.j2
Normal file
10
roles/base/templates/motd.j2
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
|
||||||
|
▗▄▄▄ ▗▄▄▄▖ ▗▄▄▖▗▄▄▄▖▗▄▄▄▖▗▄▖ ▗▖ ▗▄▄▖ ▗▄▖ ▗▄▖ ▗▄▄▖ ▗▄▄▄
|
||||||
|
▐▌ █ █ ▐▌ █ █ ▐▌ ▐▌▐▌ ▐▌ ▐▌▐▌ ▐▌▐▌ ▐▌▐▌ ▐▌▐▌ █
|
||||||
|
▐▌ █ █ ▐▌▝▜▌ █ █ ▐▛▀▜▌▐▌ ▐▛▀▚▖▐▌ ▐▌▐▛▀▜▌▐▛▀▚▖▐▌ █
|
||||||
|
▐▙▄▄▀▗▄█▄▖▝▚▄▞▘▗▄█▄▖ █ ▐▌ ▐▌▐▙▄▄▖▐▙▄▞▘▝▚▄▞▘▐▌ ▐▌▐▌ ▐▌▐▙▄▄▀
|
||||||
|
|
||||||
|
|
||||||
|
Hostname: {{ ansible_hostname }}
|
||||||
|
Distribution: {{ ansible_distribution }} {{ ansible_distribution_version }}
|
||||||
|
Kernel: {{ ansible_kernel }}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue