Manage generic mountpoints
Further development of this Ansible role has been moved to Collection bodsch.core. This repository will therefore no longer be actively maintained.
Tested on
- ArchLinux
- Debian based
- Debian 10 / 11 / 12
- Ubuntu 20.04 / 22.04
RedHat-based systems are no longer officially supported! May work, but does not have to.
mount_fstab: /etc/fstab
mount_devices: []
mount_smb_share: []
With mount_fstab
you can specify the fstab file to be generated.
This is especially helpful for tests :)
creates passwordfile for smb shares.
mount_smb_share:
- username: "bar"
password: "foo"
domain: "WORKSPACE"
passwordfile: "/tmp/.bar.smbcredentials"
required | default | description | |
---|---|---|---|
source |
yes | - |
|
mountpoint |
yes | - |
|
fstype |
yes | - |
|
opts |
no | defaults |
|
state |
no | present |
|
dump |
no | 0 |
|
passno |
no | 0 |
|
fstab |
no | `` |
mount_fstab: /tmp/molecule_fstab
mount_smb_share:
- username: "bar"
password: "foo"
passwordfile: "/tmp/zorg.pass"
- username: "foo"
password: "bar"
passwordfile: "/tmp/foo.pass"
mount_devices:
- source: tmpfs
mountpoint: /tmp
fstype: tmpfs
opts: auto,rw,noatime,size=250M,nr_inodes=800k
state: present
- source: nfs.example.org:/data
mountpoint: /mnt/remote
fstype: nfs
opts: vers=4,noauto,users,soft,intr,rsize=8192,wsize=8192
Please read Contribution
The master
Branch is my Working Horse includes the "latest, hot shit" and can be complete broken!
If you want to use something stable, please use a Tagged Version!
- Bodo Schulz
FREE SOFTWARE, HELL YEAH!