ansible-role-samba/tests/test-full.yml

47 lines
1.1 KiB
YAML
Raw Normal View History

2015-03-13 23:37:24 +00:00
---
- hosts: all
become: true
pre_tasks:
- name: Ensure /var/www/html exists
file:
name: /var/www/html
state: directory
2015-03-13 23:37:24 +00:00
vars:
#samba_netbios_name: SAMBA_TEST
2015-03-13 23:37:24 +00:00
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
2015-03-13 23:37:24 +00:00
samba_log: /var/log/samba.log
samba_log_size: 60000
samba_map_to_guest: Never
samba_users:
- name: vagrant
password: vagrant
samba_shares_root: /srv/samba
samba_shares:
- name: restrictedshare
- name: privateshare
comment: 'Only readable/writeable by vagrant'
write_list: vagrant
2015-03-14 00:10:52 +00:00
group: vagrant
2015-03-13 23:37:24 +00:00
- name: protectedshare
public: yes
comment: 'Public, but only writeable by vagrant'
write_list: vagrant
2015-03-14 00:10:52 +00:00
group: vagrant
2015-03-13 23:37:24 +00:00
- name: publicshare
comment: 'Public share, writeable by all members of group users'
public: yes
write_list: +users
2015-03-14 00:10:52 +00:00
group: users
2015-03-13 23:37:24 +00:00
setype: public_content_t
roles:
- samba