ansible-role-cmdb/templates/section_general.txt.j2

10 lines
553 B
Django/Jinja

===== General =====
* Server Type: {% if ansible_virtualization_role == "guest" %} virtual {% else %} bare metal ({{ ansible_chassis_vendor }}){% endif %}
* Virtualization: {{ ansible_virtualization_type }}
* Architecture: ''{{ ansible_machine }}''
* RAM: ''{{ (ansible_memtotal_mb / 1024) | round(2) }} GB''
* CPU: {{ ansible_processor_vcpus }} calc units ({{ ansible_processor_count }} processors with {{ ansible_processor_cores }} cores and {{ ansible_processor_threads_per_core }} threads/core)
* CPU model: {{ ansible_processor[2] }}