From 10d6b52460f7a44cc2458e9a8dbd2a4cd22e43f7 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Sat, 23 Jun 2018 13:49:04 -0500 Subject: [PATCH] roles/samba: Support selecting interfaces The `samba_interfaces` variable can now be defined to populate the `interfaces` global configuration parameter in `smb.conf`. This parameter controls the interfaces or addresses to which the Samba server binds, and also the IP addresses that are registered in DNS. --- roles/samba/templates/smb.conf.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/samba/templates/smb.conf.j2 b/roles/samba/templates/smb.conf.j2 index 0ad2f1c..a1e221d 100644 --- a/roles/samba/templates/smb.conf.j2 +++ b/roles/samba/templates/smb.conf.j2 @@ -11,6 +11,10 @@ server role = {{ samba_server_role }} {% else %} security = {{ samba_security }} {% endif %} +{% if samba_interfaces is defined %} + +interfaces = {{ samba_interfaces|join(' ') }} +{% endif %} {% if samba_options is defined %} {% for option in samba_options %}