2022-10-14 21:32:51 +02:00
|
|
|
- name: Install sanoid
|
|
|
|
apt:
|
|
|
|
name: sanoid
|
|
|
|
|
|
|
|
- name: Create sanoid directory
|
|
|
|
file:
|
|
|
|
path: /etc/sanoid
|
|
|
|
state: directory
|
|
|
|
mode: 0755
|
|
|
|
|
2022-11-09 21:47:00 +01:00
|
|
|
- import_tasks: 00-zfs-snapshots.d/sanoid.yml
|
2022-11-08 22:40:49 +01:00
|
|
|
|
2022-11-09 21:47:00 +01:00
|
|
|
- import_tasks: 00-zfs-snapshots.d/syncoid.yml
|
2022-10-14 21:32:51 +02:00
|
|
|
|
2022-11-03 01:06:40 +01:00
|
|
|
- name: Enable syncoid service
|
2022-10-14 21:32:51 +02:00
|
|
|
systemd:
|
2022-10-30 16:21:07 +01:00
|
|
|
name: syncoid-volume-data.service
|
2022-10-14 21:32:51 +02:00
|
|
|
enabled: yes
|
|
|
|
|
2022-11-03 01:06:40 +01:00
|
|
|
- name: Enable sanoid service
|
2022-10-14 21:32:51 +02:00
|
|
|
systemd:
|
|
|
|
name: sanoid.timer
|
|
|
|
enabled: yes
|
|
|
|
state: started
|