Mount and fstab management
Automax can manage mounted filesystems and /etc/fstab entries.
- id: mount_data
use: storage.mount.add
with:
src: /dev/vdb1
path: /data
fstype: xfs
opts: defaults,noatime
persist: true
sudo: true
- id: remove_data_mount
use: storage.mount.remove
with:
path: /data
persist: true
sudo: true
Use storage.fstab.add when you only want to manage persistence without mounting or unmounting immediately.