make samba_guest_account optional

This commit is contained in:
morbidick 2017-03-10 19:06:10 +01:00
parent 812082a8f2
commit 55d862afb9

2
templates/smb.conf.j2 Normal file → Executable file
View File

@ -23,7 +23,9 @@
security = {{ samba_security }}
passdb backend = {{ samba_passdb_backend }}
map to guest = {{ samba_map_to_guest }}
{% if samba_guest_account is defined %}
guest account = {{ samba_guest_account }}
{% endif %}
{% if samba_interfaces|length > 0 %}
interfaces = {{ samba_interfaces }}