diff options
author | Egor Tensin <egor@tensin.name> | 2024-12-17 02:21:03 +0100 |
---|---|---|
committer | Egor Tensin <egor@tensin.name> | 2024-12-17 04:19:53 +0100 |
commit | 61401c36051f7b097f80a22de6d6d84cc78b69ad (patch) | |
tree | f8996b155fcd6a614bb6586f5e4a42e61ec45d12 /roles/samba/templates/smb.conf.j2 | |
parent | v4.0.2 (diff) | |
download | infra-ansible-61401c36051f7b097f80a22de6d6d84cc78b69ad.tar.gz infra-ansible-61401c36051f7b097f80a22de6d6d84cc78b69ad.zip |
add samba role
Diffstat (limited to '')
-rw-r--r-- | roles/samba/templates/smb.conf.j2 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/roles/samba/templates/smb.conf.j2 b/roles/samba/templates/smb.conf.j2 new file mode 100644 index 0000000..00ef87b --- /dev/null +++ b/roles/samba/templates/smb.conf.j2 @@ -0,0 +1,15 @@ +{{ 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 + 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 |