mirror of
https://github.com/davestephens/ansible-nas
synced 2025-01-27 10:45:14 +00:00
13 lines
1,020 B
Markdown
13 lines
1,020 B
Markdown
# Samba Shares
|
|
|
|
Ansible-NAS uses the awesome [vladgh.samba](https://github.com/vladgh/ansible-collection-vladgh-samba) Ansible role to configure Samba - check out [the Ansible Galaxy page](https://galaxy.ansible.com/vladgh/samba) for the many different options you can use to configure a share.
|
|
|
|
## Share Examples
|
|
|
|
Ansible-NAS shares are defined in the `samba_shares` section within `group_vars/all.yml`. The examples provided are "public" shares that anyone on your LAN can read and write to.
|
|
|
|
## File Permissions
|
|
|
|
Ansible-NAS creates an `ansible-nas` user and group on your server, which Samba will use to access the data in your shares. New data created will be permissioned correctly.
|
|
|
|
However, if you have existing data this will need to be repermissioned so that Samba can read and serve it. An playbook is provided to do this for you - `permission_data.yml`. It is separated from the main Ansible-NAS playbook due to the time it can take to run with large amounts of data - you should only need to run this once.
|