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