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.
 
 

31 lines
900 B

---
- 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 }}"