
Remove banner reference
Ansible role - motd
⭐ Star us on GitHub — it motivates us a lot!
Install and configure dynamic MOTD and SSH banner
This role uses https://github.com/claranet/motd by default to get the banner and the 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 avail, 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
⚠️ Requirements
Ansible >= 2.9
⚡ Installation
ansible-galaxy install claranet.motd
⚙️ Role variables
Variable | Default value | Description |
---|---|---|
motd_disable_default_motd | true | Disable system default MOTD (/etc/motd) |
motd_banner_template | https://raw.githubusercontent.com/claranet/motd/master/banner | SSH banner template Can be a URL, a local template or null |
motd_banner_template_prepend | "" | Prepend raw content to motd_banner_template |
motd_banner_template_append | "" | Append raw content to motd_banner_template |
motd_banner_template_username | {{ motd_template_username }} | Used when motd_banner_template is an URL |
motd_banner_template_password | {{ motd_template_password }} | Used when motd_banner_template is an URL |
motd_template | https://raw.githubusercontent.com/claranet/motd/master/scripts/00-basic | Dynmaic MOTD template Can be a URL or a local template |
motd_template_prepend | "" | Prepend raw content to motd_template |
motd_template_append | See defaults/main.yml | Append raw content to motd_template |
motd_template_username | "" | Used when motd_template is an URL |
motd_template_password | "" | Used when motd_template is an URL |
✏️ Example Playbook
---
- hosts: all
roles:
- role: claranet.motd
motd_template: "{{ playbook_dir }}/templates/dynmotd.j2"
🔐 Hardening
😻 Contributing
©️ License
Languages
Jinja
53.9%
Python
46.1%