Ansible BuildAnsible Build
Home
Roles
Scripts
Mint System
Chat
GitHub
Home
Roles
Scripts
Mint System
Chat
GitHub
  • fstab role

fstab logo

fstab role

Configure the fstab file.

Usage

Configure the role.

fstab_credentials:
  - username: sync
    password: "{{ vault_fstab_credentials_1_password }}"
    domain: domain
fstab_mounts:
  - path: /mnt/sdb
    src: /dev/disk/by-id/scsi-0HC_Volume_10321808
    opts: discard,nofail,defaults
    state: mounted
    fstype: ext4

And include it in your playbook.

- hosts: fstab
  roles:
  - role: fstab

Docs

Unmount drive

Run this command:

sudo umount /mnt/data

Mount manually

Run this command:

sudo mount /dev/sdb1 /mnt/data
Edit this page
Last Updated: 6/9/26, 7:48 AM
Contributors: Janik von Rotz