Skip to content

Latest commit

 

History

History
115 lines (75 loc) · 2.64 KB

README.md

File metadata and controls

115 lines (75 loc) · 2.64 KB

Ansible Role: mount

Manage generic mountpoints

GitHub Workflow Status GitHub issues GitHub release (latest by date)

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

Apache

FREE SOFTWARE, HELL YEAH!