claranet.motd
Ansible-Rolle - motd
:star: Gib uns einen Stern auf GitHub — das motiviert uns sehr!
Installiere und konfiguriere ein dynamisches MOTD (Message of the Day).
Diese Rolle verwendet standardmäßig https://github.com/claranet/motd, um das MOTD zu erhalten.
Systeminformationen:
Hostname·········: claranet_motd_ubuntu-20.04
Distribution·······: Ubuntu 20.04.3 LTS
Kernel···········: Linux 5.10.47-linuxkit
Uptime···········: seit 2 Tagen, 23 Stunden, 18 Minuten
Last·············: 1.33 (1 min), 0.43 (5 min), 0.20 (15 min)
Prozesse·········: 13 (root), 3 (Benutzer), 16 (insgesamt)
CPU··············: Intel(R) Core(TM) i7-8569U CPU @ 2.80GHz (4 vCPU)
Speicher···········: 626Mi verwendet, 2.6Gi verfügbar, 3.8Gi insgesamt
Lokale IPs········: 172.17.0.6
Speichernutzung:
/ 9% verwendet von 63G
[====··············································]
Ansible:
Letzte Bereitstellung···: 2021-09-27T13:33:33.665714Z
:warning: Anforderungen
Ansible >= 2.10
:zap: Installation
ansible-galaxy install claranet.motd
:gear: Rollenvariablen
Variable | Standardwert | Beschreibung |
---|---|---|
motd_disable_default_motd | true | Deaktiviere das standardmäßige System-MOTD (/etc/motd) |
motd_template | https://raw.githubusercontent.com/claranet/motd/master/scripts/00-basic | Dynamische MOTD-Vorlage Kann eine URL oder eine lokale Vorlage sein |
motd_template_prepend | "" | Rohinhalt zu motd_template hinzufügen |
motd_template_append | Siehe defaults/main.yml | Rohinhalt zu motd_template anfügen |
motd_template_username | "" | Wird verwendet, wenn motd_template eine URL ist |
motd_template_password | "" | Wird verwendet, wenn motd_template eine URL ist |
:pencil2: Beispiel-Playbook
---
- hosts: all
roles:
- role: claranet.motd
motd_template: "{{ playbook_dir }}/templates/dynmotd.j2"
:closed_lock_with_key: Härtung
:heart_eyes_cat: Mitwirken
:copyright: Lizenz
Installieren
ansible-galaxy install claranet.motd
Lizenz
mpl-2.0
Downloads
47.1k
Besitzer
Open source projects from and contributed to by Claranet.