--- - name: Format the boot partition with vfat. filesystem: device: "{{ partitioning_priv_esp_device_node }}" state: present type: vfat - name: Format the root partition with btrfs. filesystem: device: "{{ partitioning_priv_root_device_node }}" state: present type: btrfs - name: Mount the default subvolume. mount: state: mounted src: "{{ partitioning_priv_root_device_node }}" path: "{{ partitioning_root_mount_point }}" fstype: btrfs opts: defaults,noatime,compress=zstd - name: Create subvolumes. command: cmd: btrfs subvolume create {{ (partitioning_root_mount_point + "/" + item.name) }} creates: '{{ (partitioning_root_mount_point + "/" + item.name) }}' with_items: "{{ partitioning_priv_btrfs_subvolumes }}" - name: Unmount the default subvolume. mount: state: unmounted path: "{{ partitioning_root_mount_point }}"