Add role to install nfs-server, cleanup roles and configuration
- use generic media_dirs including vdr recdir, loop over them to create directories, configure samba, nfs, etc. - add role to install an configure nfs-kernel-server - cleanup roles - add custom fact modules
This commit is contained in:
3
roles/samba-config/defaults/all
Normal file
3
roles/samba-config/defaults/all
Normal file
@@ -0,0 +1,3 @@
|
||||
samba:
|
||||
workgroup: YAVDR
|
||||
windows_compatible: true # disable unix extensions, enable follow symlinks and wide links
|
||||
@@ -3,7 +3,7 @@
|
||||
# TODO:
|
||||
#- name: divert original smbd.conf
|
||||
|
||||
- name: create smb.conf.custom
|
||||
- name: touch smb.conf.custom
|
||||
file:
|
||||
state: touch
|
||||
dest: '/etc/samba/smb.conf.custom'
|
||||
|
||||
@@ -71,11 +71,17 @@
|
||||
# to anonymous connections
|
||||
map to guest = bad user
|
||||
|
||||
{% if samba.windows_compatible %}
|
||||
# disable unix extensions and enable following symlinks
|
||||
unix extensions = no
|
||||
follow symlinks= yes
|
||||
wide links= yes
|
||||
{% endif %}
|
||||
|
||||
{% for name, path in media_dirs.iteritems() %}
|
||||
[{{ name }}]
|
||||
path = {{ path }}
|
||||
comment = {{ name }} on %h
|
||||
browseable = yes
|
||||
guest ok = yes
|
||||
writeable = yes
|
||||
browseable = yes
|
||||
|
||||
Reference in New Issue
Block a user