{% set disks = [] %} {% for disk in item.0.disks if not disk.virtio|default(False) %} {{- disks.append("hd:/dev/zvol/"+bhyve_pool+"/bhyve/guests/"+item.0.name+"/"+disk.name) -}} {% endfor %} {{ disks | join(",") }}