Skip to content

Instantly share code, notes, and snippets.

@hbjydev
Created January 1, 2021 22:50
Show Gist options
  • Save hbjydev/2a9c9ce05da0e4e0784e026f2e1f3626 to your computer and use it in GitHub Desktop.
Save hbjydev/2a9c9ce05da0e4e0784e026f2e1f3626 to your computer and use it in GitHub Desktop.
server-motd
=====[ 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