You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
521B

  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. ]