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.

20 lines
410B

  1. {% for md in mdraid_devices %}
  2. - devices:
  3. {% if md.devices is string %}
  4. {% for blk in blkid.stdout_lines %}
  5. {% if md.devices in blk %}
  6. - {{ blk.split(":")[0] }}
  7. {% endif %}
  8. {% endfor %}
  9. {% else %}
  10. {% for device in md.devices %}
  11. - {{ device }}
  12. {% endfor %}
  13. {% endif %}
  14. {% for key,val in md.iteritems() %}
  15. {% if key != "devices" %}
  16. {{ key }}: {{ val | to_json }}
  17. {% endif %}
  18. {% endfor %}
  19. {% endfor %}