Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

hard_disks.json.j2 521B

12345678910111213141516171819202122
  1. [
  2. {#
  3. {% if hard_disks is defined %}
  4. {% for hard_disk in hard_disks %}
  5. {{hard_disk}},
  6. {% endfor %}
  7. {% else %}
  8. #}
  9. {% set first_device_name = ansible_devices.keys() | first %}
  10. {% for device in ansible_devices.keys() %}
  11. {% set name = device %}
  12. {% set device = '/dev/' + device %}
  13. {% set first_device = first_device_name == name %}
  14. {
  15. "device": "{{device}}",
  16. "name": "{{name}}",
  17. "label_type": "{{ _label_type[partitioning_profile] }}",
  18. "partitions": {% include "partitions.json.j2" %}
  19. },
  20. {% endfor %}
  21. {#{% endif %}#}
  22. ]