mdraid_devices: - device: /dev/md/boot level: 1 devices: "{{ hard_disks | json_query(\"[].partitions[?usage=='boot'][].device\") | list }}" - device: /dev/md/data level: 0 devices: "{{ hard_disks | json_query(\"[].partitions[?usage=='data'][].device\") | list }}" boot_device: /dev/md/boot rescue_device: /dev/md/rescue data_device: /dev/md/data debian_boot_packages: - mdadm