From 8e2ba25d4d6d50af3651593f3e28a50561943d62 Mon Sep 17 00:00:00 2001 From: Vlad Date: Wed, 17 May 2023 10:33:48 -0500 Subject: [PATCH] Correctly enforce `samba_interfaces` option Based on https://github.com/bertvv/ansible-role-samba/pull/77 --- roles/server/templates/smb.conf.j2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/server/templates/smb.conf.j2 b/roles/server/templates/smb.conf.j2 index c283d3f..6148f2c 100644 --- a/roles/server/templates/smb.conf.j2 +++ b/roles/server/templates/smb.conf.j2 @@ -46,7 +46,8 @@ {% endif %} {% if samba_interfaces|length > 0 %} - interfaces = {{ samba_interfaces }} + bind interfaces only = yes + interfaces = 127.0.0.1 {{ samba_interfaces|join(' ') }} {% endif %} # Name resolution: make sure \\NETBIOS_NAME\ works