10c3d12215
- 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
18 lines
392 B
YAML
18 lines
392 B
YAML
# file: roles/samba-config/tasks/main.yml
|
|
|
|
# TODO:
|
|
#- name: divert original smbd.conf
|
|
|
|
- name: touch smb.conf.custom
|
|
file:
|
|
state: touch
|
|
dest: '/etc/samba/smb.conf.custom'
|
|
notify: [ 'Restart Samba' ]
|
|
|
|
- name: expand template for smb.conf
|
|
template:
|
|
src: 'templates/smb.conf.j2'
|
|
dest: '/etc/samba/smb.conf'
|
|
#validate: 'testparm -s %s'
|
|
notify: [ 'Restart Samba' ]
|