From e1470dc50e01514e464af36815e553aa0f9fb802 Mon Sep 17 00:00:00 2001 From: Bert Van Vreckem Date: Thu, 5 Nov 2015 15:14:12 +0100 Subject: [PATCH] The variable `samba_netbios_name` is no longer required and defaults to `ansible_hostname` --- templates/smb.conf.j2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/smb.conf.j2 b/templates/smb.conf.j2 index 4910862..fe56bfb 100644 --- a/templates/smb.conf.j2 +++ b/templates/smb.conf.j2 @@ -5,7 +5,8 @@ [global] # Server information - netbios name = {{ samba_netbios_name }} + netbios name = {% if samba_netbios_name is defined %}{{ samba_netbios_name }}{% else %}{{ ansible_hostname }}{% endif %} + workgroup = {{ samba_workgroup }} server string = {{ samba_server_string }}