xoxys.smb/index.md
Robert Kaussow ef8efe5413 commit 84d1b5eceb
Author: Robert Kaussow <mail@geeklabor.de>
Date:   Sun Feb 21 15:41:21 2021 +0100

    fix broken link to ansible docs
2021-02-21 14:49:31 +00:00

1.6 KiB

title type
smb docs

Source Code Build Status License: MIT

Mount a list of Samba shares.


Default Variables

smb_packages

Default value

smb_packages:
  - cifs-utils

smb_shares

Mount defined samba shares. You can specify samba credentials with the username and password parameter. Given credentials will be used in a secrets file and saved to /root/.smbcredentials/ instead of the direct use in /etc/fstab. If secrets are defined for a list item, the secrest file will also be passed automatically to mountopts. The state parameter is related to the possible state values of Ansibles mount module.

Default value

smb_shares: []

Example usage

smb_shares:
  - name: multimedia
    source: //share.example.com/media
    username: myuser
    password: secure
    mountpoint: /media/data
    mountopts:
      - acl
      - uid=1000
      - gid=1000
    state: mounted

Dependencies

None.