added table of rpi hardware revs to dress up motd

This commit is contained in:
Glenn K. Lockwood
2020-07-26 22:05:21 -07:00
parent 8bb39632fd
commit 50e1b1ec19
4 changed files with 275 additions and 11 deletions
+4 -9
View File
@@ -1,20 +1,15 @@
--------------------------------------------------------------------------------
{% if myconfig.hostname == "cloverdale" %}
{% if myconfig.hostname == "some_specific_hostname" %}
{% else %}
.~~. .~~.
'. \ ' ' / .'
.~ .~~~..~.
: .~.'~'.~. : {{ myconfig.hostname }}
~ ( ) ( ) ~
( : '~'.~.'~' : ) {{ ansible_processor_count }} core{% if ansible_processor_count > 1 %}s{% endif %}, {{ ansible_memtotal_mb }} MB RAM
~ ( ) ( ) ~ Raspberry Pi {% if raspi_rev in raspi_models %}{{ raspi_models[raspi_rev].model }}{% else %}Revision {{ raspi_rev }}{% endif %}
( : '~'.~.'~' : ) {{ ansible_processor_count }} core{% if ansible_processor_count > 1 %}s{% endif %}, {% if raspi_rev in raspi_models %}{{ raspi_models[raspi_rev].mem }}{% else %}{{ ansible_memtotal_mb }} MB{% endif %} RAM
~ .~ ( ) ~. ~ {{ ansible_lsb.description }}
( : '~' : )
'~ .~~~. ~'
'~'
{% else %}
{{ myconfig.hostname }}
{{ ansible_processor_count }} core{% if ansible_processor_count > 1 %}s
{% endif %}
{{ ansible_memtotal_mb }} MB RAM
{{ ansible_lsb.description }}
{% endif %}
--------------------------------------------------------------------------------