From 7439d63baa05fdece0941454858b3a0f30621986 Mon Sep 17 00:00:00 2001 From: SvenEeckeman Date: Sun, 5 Nov 2017 12:55:12 +0100 Subject: [PATCH 1/2] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index c15055e..e793048 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,7 @@ No specific requirements | `samba_map_to_guest` | `bad user` | Behaviour when unregistered users access the shares. | | `samba_netbios_name` | `{{ ansible_hostname }}` | The NetBIOS name of this server. | | `samba_passdb_backend` | `tdbsam` | Password database backend. | +| `samba_realm` | - | Realm domain name | | `samba_security` | `user` | Samba security setting | | `samba_server_string` | `fileserver %m` | Comment string for the server. | | `samba_shares` | [] | List of dicts containing share definitions. See below for details. | From d653347e6761ad24f741899921ca89dba5e72a3a Mon Sep 17 00:00:00 2001 From: SvenEeckeman Date: Sun, 5 Nov 2017 12:57:31 +0100 Subject: [PATCH 2/2] Update smb.conf.j2 --- templates/smb.conf.j2 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 %}