ansible-alpine-host/tasks/mount.yml
2022-04-09 21:29:22 -03:00

20 lines
716 B
YAML

---
- name: "Mount everything in order so it's ready for the installation later. Root is BTRFS with opportunistic compression. Same for srv. The other options reduce writes and perform SSD cleanup and write optimization."
mount:
path: "/mnt"
src: "{{ disk_device }}2"
opts: "compress=zstd,noatime,nodiratime,lazytime,discard"
state: "mounted"
fstype: "btrfs"
- name: "Directories need to be created before mounting can happen."
file:
state: "directory"
path: "/mnt/boot"
- name: "Mount /boot. There's no need to mount /srv during install."
mount:
path: "/mnt/boot"
src: "{{ disk_device }}1"
opts: "noatime,nodiratime,lazytime"
state: "mounted"
fstype: "ext2"