diff options
author | Egor Tensin <egor@tensin.name> | 2025-05-09 18:20:09 +0200 |
---|---|---|
committer | Egor Tensin <egor@tensin.name> | 2025-05-09 18:35:28 +0200 |
commit | 27bf0276a2240493921c356bf98d2fc85f428be9 (patch) | |
tree | 0473c33821fa778cc68fa77fbe921d6262fd5de5 /roles/samba/templates/smb.conf.j2 | |
parent | v4.3.0 (diff) | |
download | infra-ansible-27bf0276a2240493921c356bf98d2fc85f428be9.tar.gz infra-ansible-27bf0276a2240493921c356bf98d2fc85f428be9.zip |
Diffstat (limited to 'roles/samba/templates/smb.conf.j2')
-rw-r--r-- | roles/samba/templates/smb.conf.j2 | 4 |
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 }} |