diff --git a/templates/smb.conf.j2 b/templates/smb.conf.j2 index f4491f8..a0109f9 100755 --- a/templates/smb.conf.j2 +++ b/templates/smb.conf.j2 @@ -8,7 +8,10 @@ netbios name = {% if samba_netbios_name is defined %}{{ samba_netbios_name }}{% else %}{{ ansible_hostname }}{% endif %} workgroup = {{ samba_workgroup }} - server string = {{ samba_server_string }} +{% if samba_realm is defined %} + realm = {{ samba_realm }} +{% endif %} +server string = {{ samba_server_string }} # Logging {% if samba_log is defined %}