aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/samba/templates
diff options
context:
space:
mode:
Diffstat (limited to 'roles/samba/templates')
-rw-r--r--roles/samba/templates/smb.conf.j215
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