added config files and handlers
This commit is contained in:
parent
52408e5e1d
commit
09adf9b273
10
handlers/main.yml
Normal file
10
handlers/main.yml
Normal file
@ -0,0 +1,10 @@
|
||||
---
|
||||
- name: restart smbd
|
||||
service:
|
||||
name: smbd
|
||||
state: restarted
|
||||
|
||||
- name: restart cron
|
||||
service:
|
||||
name: cron
|
||||
state: restarted
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user