added config files and handlers

This commit is contained in:
DigitalInfinity committed 2021-06-12 00:55:55 +01:00
1 parent 52408e5e1d
commit 09adf9b273
2 files changed
+24

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
---
- name: restart smbd
service:
name: smbd
state: restarted
- name: restart cron
service:
name: cron
state: restarted
+14
View File
@@ -30,6 +30,20 @@
New SMB password: "{{ networkvault_vault_password }}"
Retype new SMB password: "{{ networkvault_vault_password }}"
- name: generate /etc/samba/smb.conf
template:
src: smb.conf.j2
dest: /etc/samba/smb.conf
notify:
- restart smbd
- name: generate /etc/rsnapshot.conf
template:
src: rsnapshot.conf.j2
dest: /etc/rsnapshot.conf
notify:
- restart cron
- name: reboot at 6 in the morning to activate kernel-updates
cron:
name: "reboot"