Created
January 1, 2021 22:50
-
-
Save hbjydev/2a9c9ce05da0e4e0784e026f2e1f3626 to your computer and use it in GitHub Desktop.
server-motd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=====[ THIS SERVER IS MANAGED WITH ANSIBLE ]===== | |
_ __ _ | |
|_| / \_/ | \ |__ |\| \_/ /-\ | | |\| | _ | |
| | /-\ / |_/ |__ | | / \-/ \_/ | | |_| | |
================================================= | |
{{ inventory_hostname }} | |
├─ type: {% if ansible_virtualization_role == 'host' -%} Physical Host {% else -%} {{ ansible_virtualization_type }} guest VM {% endif %} | |
├─ os: {{ ansible_distribution }} {{ ansible_distribution_version }} ({{ ansible_architecture }}) | |
├─ cpu: {{ ansible_processor_vcpus }} ( {{ ansible_processor[1] }} ) | |
├─ memory: {{ ansible_memtotal_mb }} MB | |
└─ roles: {% for group in group_names %} {{ group | replace("hostgroup-role-","") }}, {% endfor %} | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment