--- - name: Inspect EFI boot partitions become: true command: "blkid {{ item }}" loop: "{{ base_efi_partitions | default([]) }}" register: blkid - name: Format EFI partitions fat32 command: "mkfs.vfat -v -F 32 -n EFI {{ item.item }}" loop: "{{ blkid.results | rejectattr('stdout', 'contains', 'TYPE=\"vfat\"') }}" register: mkfs_vfat_efi