Change variable type of samba_create_varwww_symlinks from string to boolean (#2)

This commit is contained in:
Bert Van Vreckem 2015-11-05 15:13:17 +01:00
parent 452406499d
commit a944280ba0
3 changed files with 10 additions and 3 deletions

View File

@ -9,4 +9,5 @@ samba_passdb_backend: 'tdbsam'
samba_map_to_guest: 'bad user'
samba_load_printers: false
samba_load_homes: false
samba_create_varwww_symlinks: false
samba_shares_root: '/srv/shares'

View File

@ -35,7 +35,7 @@
tags: samba
- name: Check if /var/www/html exists
when: samba_create_varwww_symlinks is defined and samba_create_varwww_symlinks == true
when: samba_create_varwww_symlinks
stat: path=/var/www/html
register: var_www_html
tags: samba

View File

@ -1,13 +1,20 @@
---
- hosts: all
sudo: true
pre_tasks:
- name: Ensure /var/www/html exists
file:
name: /var/www/html
state: directory
vars:
samba_netbios_name: SAMBA_TEST
#samba_netbios_name: SAMBA_TEST
samba_server_string: 'Welcome to the test file server'
samba_workgroup: TESTGROUP
samba_load_homes: true
samba_load_printers: false
samba_create_varwww_symlinks: true
samba_log: /var/log/samba.log
samba_log_size: 60000
@ -35,6 +42,5 @@
write_list: +users
group: users
setype: public_content_t
samba_create_varwww_symlinks: yes
roles:
- samba