From bf5aa7dacd75f602cb49d8dfd11258a3581849a1 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Fri, 15 Jul 2016 20:58:30 +0200 Subject: [PATCH] added interfaces option to template file and support for ArchLinux os --- templates/smb.conf.j2 | 4 ++++ vars/os_Archlinux.yml | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 vars/os_Archlinux.yml diff --git a/templates/smb.conf.j2 b/templates/smb.conf.j2 index 378bc9f..da0101a 100644 --- a/templates/smb.conf.j2 +++ b/templates/smb.conf.j2 @@ -24,6 +24,10 @@ passdb backend = {{ samba_passdb_backend }} map to guest = {{ samba_map_to_guest }} +{% if samba_interfaces is defined %} + interfaces = {{ samba_interfaces }} +{% endif %} + # Name resolution: make sure \\NETBIOS_NAME\ works wins support = yes local master = yes diff --git a/vars/os_Archlinux.yml b/vars/os_Archlinux.yml new file mode 100644 index 0000000..edfd3f6 --- /dev/null +++ b/vars/os_Archlinux.yml @@ -0,0 +1,16 @@ +# roles/samba/vars/os_Archlinux.yml +--- + +samba_packages: + - samba + - smbclient + +samba_selinux_packages: [] +samba_selinux_booleans: [] + +samba_configuration: /etc/samba/smb.conf + +samba_service: smbd +winbind_service: nmbd + +samba_www_documentroot: /var/www