You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
---
|
|
|
|
- name: Format the boot partition with vfat.
|
|
|
|
filesystem:
|
|
|
|
device: "{{ disk_egbl_esp_device_node }}"
|
|
|
|
state: present
|
|
|
|
type: vfat
|
|
|
|
force: true
|
|
|
|
|
|
|
|
- name: Format the luks container with btrfs.
|
|
|
|
filesystem:
|
|
|
|
device: /dev/mapper/{{ disk_egbl_luks_name }}
|
|
|
|
state: present
|
|
|
|
type: btrfs
|
|
|
|
force: true
|
|
|
|
|
|
|
|
- name: Mount the default subvolume.
|
|
|
|
mount:
|
|
|
|
state: mounted
|
|
|
|
src: /dev/mapper/{{ disk_egbl_luks_name }}
|
|
|
|
path: "{{ root_mount }}"
|
|
|
|
fstype: btrfs
|
|
|
|
opts: defaults,noatime,compress=zstd
|
|
|
|
|
|
|
|
- name: Create subvolumes.
|
|
|
|
command:
|
|
|
|
cmd: btrfs subvolume create {{ root_mount + "/" + item.name }}
|
|
|
|
creates: '{{ root_mount + "/" + item.name }}'
|
|
|
|
with_items: "{{ disk_egbl_btrfs_subvolumes }}"
|
|
|
|
|
|
|
|
- name: Unmount the default subvolume.
|
|
|
|
mount:
|
|
|
|
state: unmounted
|
|
|
|
path: "{{ root_mount }}"
|