yavdr-ansible/roles/samba-config/tasks/main.yml

18 lines
392 B
YAML
Raw Normal View History

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