diff --git a/roles/samba/tasks/conf.yml b/roles/samba/tasks/conf.yml index 3ae65c4..b7c0d4e 100644 --- a/roles/samba/tasks/conf.yml +++ b/roles/samba/tasks/conf.yml @@ -78,8 +78,13 @@ creates: /var/lib/samba/private/tls/dhparam.pem tags: samba -- name: Deploy smb.conf - template: src=smb.conf.j2 dest=/etc/samba/smb.conf +- name: Deploy samba configuration + template: src={{ item.src }} dest={{ item.dest }} + loop: + - src: smb.conf.j2 + dest: /etc/samba/smb.conf + - src: sysconfig.j2 + dest: /etc/sysconfig/samba notify: reload samba tags: samba diff --git a/roles/samba/templates/sysconfig.j2 b/roles/samba/templates/sysconfig.j2 new file mode 100644 index 0000000..07e0d37 --- /dev/null +++ b/roles/samba/templates/sysconfig.j2 @@ -0,0 +1,18 @@ +## Path: Network/Samba +## Description: Samba process options +## Type: string +## Default: "" +## ServiceRestart: samba +SAMBAOPTIONS="--log-basename=/var/log/samba" +## Type: string +## Default: "" +## ServiceRestart: smb +SMBDOPTIONS="" +## Type: string +## Default: "" +## ServiceRestart: nmb +NMBDOPTIONS="" +## Type: string +## Default: "" +## ServiceRestart: winbind +WINBINDOPTIONS=""