Pass to parted parameters based on fs type.

Even if the partiton type was specified as something different from ext4 parted
was passed ext4 parameters.

Change-Id: Ia2905d0b1acacc07ab2fb0363a4d45bff0a93f4e
This commit is contained in:
Stefano Canepa 2019-07-18 16:08:55 +01:00
parent cd6f7d0146
commit 5b7affa58e

View File

@ -61,7 +61,7 @@
filesystem:
fstype: "{{ bootstrap_host_data_disk_fs_type }}"
dev: "/dev/{{ _bootstrap_host_data_disk_device }}1"
opts: "{{ bootstrap_host_format_options['ext4'] | default(omit) }}"
opts: "{{ bootstrap_host_format_options[bootstrap_host_data_disk_fs_type] | default(omit) }}"
when:
- bootstrap_host_data_disk_device_force | bool
tags: