Install zfs and sanoid
This commit is contained in:
16
ansible/roles/zfs/tasks/sanoid.yml
Normal file
16
ansible/roles/zfs/tasks/sanoid.yml
Normal file
@ -0,0 +1,16 @@
|
||||
- name: Install Sanoid
|
||||
package:
|
||||
name: sanoid
|
||||
become: true
|
||||
|
||||
- name: Sanoid config
|
||||
template:
|
||||
src: files/sanoid.conf
|
||||
dest: /etc/sanoid/sanoid.conf
|
||||
become: true
|
||||
|
||||
- name: Install sanoid cron job
|
||||
cron:
|
||||
name: sanoid
|
||||
special_time: hourly
|
||||
job: TZ=UTC sanoid
|
Reference in New Issue
Block a user