fix(partitioning): add failed_when to all blkid commands to catch empty UUIDs
This commit is contained in:
@@ -67,6 +67,7 @@
|
||||
ansible.builtin.command: "blkid -s UUID -o value {{ item.partition }}"
|
||||
register: partitioning_extra_disk_uuids
|
||||
changed_when: false
|
||||
failed_when: partitioning_extra_disk_uuids.rc != 0 or (partitioning_extra_disk_uuids.stdout | trim | length) == 0
|
||||
loop: "{{ partitioning_extra_disks }}"
|
||||
loop_control:
|
||||
label: "{{ item.partition }}"
|
||||
|
||||
Reference in New Issue
Block a user