Catena - Samba Ansible Role
Setup Samba as file server and manage smb.conf - The configuration file for the Samba suite.
Variable | Default | Info |
---|---|---|
samba_shares |
[] |
List of dicts with shares definitions. |
samba_username_map |
[] |
List of dicts with username maps. |
Define a list of dicts with shares definitions that will be used by Samba:
samba_shares:
# Name of the shared resource
- name: Storage
# Unix directory of the share
path: /mnt/storage
# Space separated list of users allowed to login
valid_users: "{{ samba_username }}"
# Space separated list of users with read-write access
write_list: "{{ samba_username }}"
# Define if the share will be visible in the list of available shares
browseable: 'yes'
# Define if users can create or modify files in the directory
writable: 'yes'
List of dicts with Windows usernames mapped to Unix ones:
samba_username_map:
# Space separated list of Windows username to map
- from: admin administrator
# Unix username to associate with Windows ones
to: root