diff --git a/defaults/main.yml b/defaults/main.yml index d18c04d..7cafd0e 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -7,6 +7,6 @@ samba_log_size: 5000 samba_security: 'user' samba_passdb_backend: 'tdbsam' samba_map_to_guest: 'bad user' -samba_load_printers: 'no' -samba_load_homes: 'no' +samba_load_printers: false +samba_load_homes: false samba_shares_root: '/srv/shares' diff --git a/templates/smb.conf.j2 b/templates/smb.conf.j2 index df8bac8..8c825c4 100644 --- a/templates/smb.conf.j2 +++ b/templates/smb.conf.j2 @@ -29,7 +29,7 @@ domain master = yes preferred master = yes -{% if samba_load_printers == 'no' %} +{% if not samba_load_printers %} # Don't load printers load printers = no printing = bsd @@ -37,7 +37,7 @@ disable spoolss = yes {% endif %} -{% if samba_load_homes == 'yes' %} +{% if samba_load_homes %} ## Make home directories accessible [homes] comment = Home Directories diff --git a/tests/test-full.yml b/tests/test-full.yml index 6d7c8eb..c5cc915 100644 --- a/tests/test-full.yml +++ b/tests/test-full.yml @@ -6,8 +6,8 @@ samba_server_string: 'Welcome to the test file server' samba_workgroup: TESTGROUP - samba_load_homes: yes - samba_load_printers: yes + samba_load_homes: true + samba_load_printers: true samba_log: /var/log/samba.log samba_log_size: 60000