homeserver/roles/mgrote.motd/templates/20-facts-mgrote
mg 8dcd648f0b header eingebaut (#149)
header eingebaut

Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: mg/ansible#149
Co-Authored-By: mg <mg@noreply.git.mgrote.net>
Co-Committed-By: mg <mg@noreply.git.mgrote.net>
2021-07-10 12:51:41 +02:00

9 lines
512 B
Bash

#!/bin/sh
{{ file_header | default () }}
echo "FQDN: {{ ansible_fqdn }}"
echo "Distro: {{ ansible_distribution }} {{ ansible_distribution_version }} {{ ansible_distribution_release }}"
echo "Virtual: {{ 'YES' if ansible_virtualization_role == 'guest' else 'NO' }}"
echo "Virtualization Type: {{ ansible_virtualization_type }}"
#echo "Timezone: {{ ansible_date_time.tz }}({{ ansible_date_time.tz_offset }})"
up=$(uptime -p)
echo "Uptime: $up"