yavdr-ansible/roles/samba-config/tasks/main.yml
Alexander Grothe 10c3d12215 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
2017-03-13 10:40:35 +01:00

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' ]