From 61401c36051f7b097f80a22de6d6d84cc78b69ad Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 17 Dec 2024 02:21:03 +0100 Subject: add samba role --- roles/samba/templates/smb.conf.j2 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 roles/samba/templates/smb.conf.j2 (limited to 'roles/samba/templates/smb.conf.j2') 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 -- cgit v1.2.3