aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/samba/templates/smb.conf.j2
blob: 4b7805a72042e119d45119b66a799e97927b8aab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{{ ansible_managed | comment }}

# https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Standalone_Server#Creating_a_Basic_guest_only_smb.conf_File

[global]
    logging = syslog
    map to guest = Bad user
{% if samba_guest_account %}
{# Otherwise, it's `nobody`, and you will, most likely, get read access only. #}
    guest account = {{ samba_guest_account }}
{% endif %}
    server role = standalone server
    auto services = {{ samba_share_name }}

[{{ samba_share_name }}]
    path = {{ samba_share_dir }}
    read only = no
    guest ok = yes
    guest only = yes