ansible-role-cmdb/templates/section_block_devices.txt.j2
2023-06-19 15:12:18 +02:00

8 lines
339 B
Django/Jinja

===== Block devices =====
^ Model ^ Type ^ Size ^
{% for device_name, device_info in ansible_facts.devices.items() %}
{% if "nvme" in device_name or "sd" in device_name or "sr" in device_name %}
| {{ device_info.model }} | {% if "nvme" in device_name %}NVMe{% else %}SSD/HDD{% endif %} | {{ device_info.size }} |
{% endif %}
{% endfor %}