2017-02-23 13:15:04 +01:00
|
|
|
# file: roles/samba-config/tasks/main.yml
|
|
|
|
|
|
|
|
# TODO:
|
|
|
|
#- name: divert original smbd.conf
|
|
|
|
|
2017-03-13 10:40:35 +01:00
|
|
|
- name: touch smb.conf.custom
|
2017-02-23 13:15:04 +01:00
|
|
|
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' ]
|