Add samba reboot restart cronjob

This commit is contained in:
Daniel A. Maierhofer
2018-11-12 00:02:57 +01:00
parent a751a6549d
commit 5116516af6
2 changed files with 14 additions and 0 deletions

6
doc/progress.md Normal file
View File

@@ -0,0 +1,6 @@
# Check if share works
```shell
smbclient -L //localhost -U dell
smbclient //localhost/scans -U dell
```

View File

@@ -3,6 +3,7 @@
package: name={{ item }}
with_items:
- samba
- smbclient
- name: samba - /etc/smb.conf
template: dest=/etc/samba/smb.conf src=smb.conf.j2 owner=root group=root mode=0644
@@ -18,3 +19,10 @@
- name: samba - set smbpasswds
shell: "(echo {{ item['smbpasswd'] }}; echo {{ item['smbpasswd'] }}) | smbpasswd -s -a {{ item['name'] }}"
with_items: '{{ samba_users }}'
changed_when: False
- name: samba - add cronjob for fixing IPv4
cron:
name: samba reboot restart
special_time : reboot
job: "sleep 15 && sv restart smbd"