Use this when automating mounts and fstab entries by UUID.
Mount Automation
Mount automation adds file systems to /etc/fstab by UUID with correct options, or uses systemd mount units or Ansible's mount module, then verifies with findmnt.
1. Mount automation updates fstab and mounts.
2. Use UUIDs.
3. nofail/_netdev where appropriate.
4. Verify with findmnt.
5. Test reboot.
filesystem UUID → fstab → mounted
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Common mistakes Narrow the fault
- Device names (
/dev/sdb) instead of UUIDs. - Missing
nofail/_netdevon network mounts, blocking boot.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Mount by UUID in fstab.
- Use correct mount options.
- Verify with findmnt.
ansible <h> -m ansible.posix.mount -a 'path=/data src=UUID=<uuid> fstype=xfs state=mounted' --check— mount modulefindmnt /data— mountedfindmnt --verify— fstab check
ReferenceWhy it matters1 section · depth on demand
What it is
Mount automation creates mount points and persistent entries (/etc/fstab with UUID, or systemd mount units) and verifies with findmnt.
ReferenceImportant terms & boundaries2 sections · depth on demand
How it works
Mounts are defined in /etc/fstab (or systemd .mount units) and activated by systemd at boot. Using UUIDs or labels keeps them stable when device names change; nofail keeps boot going if a data disk is missing.
Example
- ansible.posix.mount:
path: /data
src: UUID={{ data_uuid }}
fstype: xfs
opts: defaults,nofail
state: mounted
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Storage Automation > Mount Automation. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.ansible.com/ansible/latest/collections/community/general/lvol_module.html · confidence 94%