diff --git a/templates/host.j2 b/templates/host.j2 index 2921683..a5efccd 100644 --- a/templates/host.j2 +++ b/templates/host.j2 @@ -3,7 +3,8 @@ * 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 }} {% 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 ){% endif %} + * CPUs: {{ ansible_processor_vcpus }} ( {{ ansible_processor_count }} x {{ ansible_processor_cores }} Cores x {{ ansible_processor_threads_per_core }} Threads ) +{% endif %} * CPU-Type: {{ ansible_processor[2]|default("N/A") }} * RAM: {{ ansible_memtotal_mb|default("N/A") }} MB * Swap: {{ "%0.2f" % (ansible_swaptotal_mb|default(0) / 1024) }} GB