ansible-edda/playbooks/tasks/backups/00-zfs-snapshots.yml

25 lines
440 B
YAML

- name: Install sanoid
apt:
name: sanoid
- name: Create sanoid directory
file:
path: /etc/sanoid
state: directory
mode: 0755
- import_tasks: 00-zfs-snapshots.d/sanoid.yml
- import_tasks: 00-zfs-snapshots.d/syncoid.yml
- name: Enable syncoid service
systemd:
name: syncoid-volume-data.service
enabled: yes
- name: Enable sanoid service
systemd:
name: sanoid.timer
enabled: yes
state: started