Ansible role to mount remote CIFS storage.
Building and improving this Ansible role have been sponsored by my current and previous employers like Cloudpunks GmbH and Proact Deutschland GmbH.
- Minimum Ansible version:
2.10
Path to credentials file
storage_credentials: /etc/smbpasswdMode for directories
storage_dir_mode: '0770'Mode for files
storage_file_mode: '0660'Group for the mount
storage_gid: rootMount options for fstab
storage_options:
- noauto
- nofail
- x-systemd.automount
- x-systemd.requires=network-online.target
- x-systemd.device-timeout=10
- vers=3.0
- mfsymlinks
- uid={{ storage_uid }}
- gid={{ storage_gid }}
- dir_mode={{ storage_dir_mode }}
- file_mode={{ storage_file_mode }}
- workgroup=workgroup
- credentials={{ storage_credentials }}Password for CIFS
storage_password:Path to mount to
storage_path:Server to connect via CIFS
storage_server:Share name of CIFS storage
storage_share: backupUser for the mount
storage_uid: rootUsername for CIFS
storage_username:storage
Apache-2.0