bodsch.mount
Ansible Role: mount
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.
Operating systems
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.
Role Variables
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 :)
mount_smb_share
creates passwordfile for smb shares.
mount_smb_share:
- username: "bar"
password: "foo"
domain: "WORKSPACE"
passwordfile: "/tmp/.bar.smbcredentials"
mount_devices
| required | default | description | |
|---|---|---|---|
source |
yes | - |
|
mountpoint |
yes | - |
|
fstype |
yes | - |
|
opts |
no | defaults |
|
state |
no | present |
|
dump |
no | 0 |
|
passno |
no | 0 |
|
fstab |
no | `` |
example configuration
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
Contribution
Please read Contribution
Development, Branches (Git Tags)
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!
Author
- Bodo Schulz
License
FREE SOFTWARE, HELL YEAH!
Install
ansible-galaxy install bodsch.mountLicense
apache-2.0
Downloads
105
Owner
ex-developer (c, c++, php),
ex-system administrator / engineer,
keep-it-simple,
monitoring,
automation,
system architect
