Compare commits

...

2 commits

Author SHA1 Message Date
Sven Velt 25d3363a39 Fixed formating error 2024-07-10 14:50:54 +02:00
Sven Velt b84363062e More defaults for minimal Alpine systems 2021-12-07 15:07:33 +01:00

View file

@ -1,11 +1,13 @@
====== {{ inventory_hostname }} ====== ====== {{ inventory_hostname }} ======
* FQDN: {{ ansible_fqdn }} -- {{ ansible_default_ipv4.address }} * FQDN: {{ ansible_fqdn }} -- {{ ansible_default_ipv4.address }}
* Product: **{{ ansible_system_vendor|default("N/A") }}** {{ ansible_product_name|default("N/A") }} (S/N: {{ ansible_product_serial }}), {{ ansible_form_factor }} * Product: **{{ ansible_system_vendor|default("N/A") }}** {{ ansible_product_name|default("N/A") }} (S/N: {{ ansible_product_serial|default("N/A") }}), {{ ansible_form_factor|default("N/A") }}
* Virtualization: {{ ansible_virtualization_role }} / {{ ansible_virtualization_type }} * Virtualization: {{ ansible_virtualization_role }} / {{ ansible_virtualization_type }}
{% if ansible_processor_vcpus|default(False) %}
* CPUs: {{ ansible_processor_vcpus }} ( {{ ansible_processor_count }} x {{ ansible_processor_cores }} Cores x {{ ansible_processor_threads_per_core }} Threads ) * CPUs: {{ ansible_processor_vcpus }} ( {{ ansible_processor_count }} x {{ ansible_processor_cores }} Cores x {{ ansible_processor_threads_per_core }} Threads )
* CPU-Type: {{ ansible_processor[2] }} {% endif %}
* RAM: {{ ansible_memtotal_mb }} MB * CPU-Type: {{ ansible_processor[2]|default("N/A") }}
* Swap: {{ "%0.2f" % (ansible_swaptotal_mb / 1024) }} GB * RAM: {{ ansible_memtotal_mb|default("N/A") }} MB
* Swap: {{ "%0.2f" % (ansible_swaptotal_mb|default(0) / 1024) }} GB
* OS: {{ ansible_distribution }} {{ ansible_distribution_version }} * OS: {{ ansible_distribution }} {{ ansible_distribution_version }}
* Kernel: {{ ansible_kernel }} * Kernel: {{ ansible_kernel }}
* Init: {{ ansible_service_mgr }} * Init: {{ ansible_service_mgr }}
@ -16,7 +18,7 @@
Mountpoints: Mountpoints:
| Source | Mountpoint | Filesystem | | Source | Mountpoint | Filesystem |
{% for m in ansible_mounts %} {% for m in ansible_mounts|default([]) %}
| ''{{ m.device }}'' | ''{{ m.mount }}'' | ''{{ m.fstype }}'' | | ''{{ m.device }}'' | ''{{ m.mount }}'' | ''{{ m.fstype }}'' |
{% endfor %} {% endfor %}