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.j24
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/samba/templates/smb.conf.j2 b/roles/samba/templates/smb.conf.j2
index 00ef87b..4b7805a 100644
--- a/roles/samba/templates/smb.conf.j2
+++ b/roles/samba/templates/smb.conf.j2
@@ -5,6 +5,10 @@
[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 }}