fix(partitioning): add wipefs before mkfs on extra disk partitions
This commit is contained in:
@@ -48,6 +48,14 @@
|
||||
ansible.builtin.command: udevadm settle
|
||||
changed_when: false
|
||||
|
||||
- name: Wipe existing filesystem signatures on additional disk partitions
|
||||
when: partitioning_extra_disks | length > 0
|
||||
ansible.builtin.command: "wipefs --force --all {{ item.partition }}"
|
||||
changed_when: true
|
||||
loop: "{{ partitioning_extra_disks }}"
|
||||
loop_control:
|
||||
label: "{{ item.partition }}"
|
||||
|
||||
- name: Create filesystems on additional disks
|
||||
when: partitioning_extra_disks | length > 0
|
||||
vars:
|
||||
|
||||
Reference in New Issue
Block a user