claranet.motd
Ansible Role - MOTD
:star: Please star us on GitHub — it really helps!
This role installs and sets up a dynamic Message of the Day (MOTD).
By default, it uses this MOTD repository.
Example system information shown by MOTD:
System info:
Hostname·········: claranet_motd_ubuntu-20.04
Distro···········: Ubuntu 20.04.3 LTS
Kernel···········: Linux 5.10.47-linuxkit
Uptime···········: up 2 days, 23 hours, 18 minutes
Load·············: 1.33 (1m), 0.43 (5m), 0.20 (15m)
Processes········: 13 (root), 3 (user), 16 (total)
CPU··············: Intel(R) Core(TM) i7-8569U CPU @ 2.80GHz (4 vCPU)
Memory···········: 626Mi used, 2.6Gi available, 3.8Gi total
Local IPs········: 172.17.0.6
Disk usage:
/ 9% used out of 63G
[====··············································]
Ansible:
Last deployment···: 2021-09-27T13:33:33.665714Z
:warning: Requirements
Ansible version 2.10 or higher.
:zap: Installation
Run the following command to install the role:
ansible-galaxy install claranet.motd
:gear: Role Variables
Variable | Default Value | Description |
---|---|---|
motd_disable_default_motd | true | Disable the system's default MOTD (/etc/motd) |
motd_template | https://raw.githubusercontent.com/claranet/motd/master/scripts/00-basic | Dynamic MOTD template Can be a URL or a local file |
motd_template_prepend | "" | Add raw content before the motd_template |
motd_template_append | See defaults/main.yml | Add raw content after the motd_template |
motd_template_username | "" | For use if motd_template is a URL |
motd_template_password | "" | For use if motd_template is a URL |
:pencil2: Example Playbook
Here's how to use this role in a playbook:
---
- hosts: all
roles:
- role: claranet.motd
motd_template: "{{ playbook_dir }}/templates/dynmotd.j2"
:closed_lock_with_key: Hardening
:heart_eyes_cat: Contributing
:copyright: License
Informazioni sul progetto
Install and configure dynamic MOTD
Installa
ansible-galaxy install claranet.motd
Licenza
mpl-2.0
Download
47.1k
Proprietario
Open source projects from and contributed to by Claranet.