ansible-alpine-host/tasks/mount.yml

20 lines
716 B
YAML
Raw Permalink Normal View History

2022-04-10 00:29:22 +00:00
---
- 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"