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
614 B
28 lines
614 B
3 years ago
|
- name: Mount @/root to /mnt.
|
||
|
mount:
|
||
|
state: mounted
|
||
|
src: /dev/mapper/{{ luks_name }}
|
||
|
path: /mnt
|
||
|
fstype: btrfs
|
||
|
opts: defaults,noatime,compress=zstd,subvol=@/root
|
||
|
|
||
|
- name: Mount @/home to /mnt/home.
|
||
|
mount:
|
||
|
state: mounted
|
||
|
src: /dev/mapper/{{ luks_name }}
|
||
|
path: /mnt/home
|
||
|
fstype: btrfs
|
||
|
opts: defaults,noatime,compress=zstd,subvol=@/home
|
||
|
|
||
|
- name: Make sure /mnt/boot/efi exists.
|
||
|
file:
|
||
|
path: /mnt/boot/efi
|
||
|
state: directory
|
||
|
|
||
|
- name: Mount boot partition to /mnt/boot/efi.
|
||
|
mount:
|
||
|
state: mounted
|
||
|
src: /dev/{{ disk }}1
|
||
|
path: /mnt/boot/efi
|
||
|
fstype: vfat
|