Skip to content

Setup Samba as file server and manage its configuration files.

License

Notifications You must be signed in to change notification settings

alysoid/ansible-role-samba

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Catena - Samba Ansible Role

Setup Samba as file server and manage smb.conf - The configuration file for the Samba suite.

Role variables

Variable Default Info
samba_shares [] List of dicts with shares definitions.
samba_username_map [] List of dicts with username maps.

samba_shares

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'

samba_username_map

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

About

Setup Samba as file server and manage its configuration files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published