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.
28 lines
640 B
28 lines
640 B
- name: Create btrfs in LUKS container.
|
|
filesystem:
|
|
device: /dev/mapper/cryptroot
|
|
state: present
|
|
type: btrfs
|
|
|
|
- name: Mount new filesystem to /mnt.
|
|
mount:
|
|
state: mounted
|
|
src: /dev/mapper/cryptroot
|
|
path: /mnt
|
|
fstype: btrfs
|
|
opts: defaults,noatime,compress=zstd
|
|
|
|
- name: Create Btrfs @ subvolume.
|
|
command:
|
|
cmd: btrfs subvolume create /mnt/@
|
|
creates: /mnt/@
|
|
|
|
- name: Create Btrfs @/root subvolume.
|
|
command:
|
|
cmd: btrfs subvolume create /mnt/@/root
|
|
creates: /mnt/@/root
|
|
|
|
- name: Create Btrfs @/home subvolume.
|
|
command:
|
|
cmd: btrfs subvolume create /mnt/@/home
|
|
creates: /mnt/@/home
|
|
|