aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/samba/templates/smb.conf.j2
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2025-05-09 18:20:09 +0200
committerEgor Tensin <egor@tensin.name>2025-05-09 18:35:28 +0200
commit27bf0276a2240493921c356bf98d2fc85f428be9 (patch)
tree0473c33821fa778cc68fa77fbe921d6262fd5de5 /roles/samba/templates/smb.conf.j2
parentv4.3.0 (diff)
downloadinfra-ansible-27bf0276a2240493921c356bf98d2fc85f428be9.tar.gz
infra-ansible-27bf0276a2240493921c356bf98d2fc85f428be9.zip
samba: set guest accountHEADmaster
Diffstat (limited to 'roles/samba/templates/smb.conf.j2')
-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 }}