Install and configure Sanoid for automatic ZFS snapshots.
List of variables from defaults/main.yml
.
sanoid_package: sanoid
Package to install. You should not need to override this.
sanoid_templates:
- name: example
frequently: 0
hourly: 24
daily: 7
monthly: 12
yearly: 0
autosnap: "yes"
autoprune: "yes"
Dictionary of Sanoid backup templates. The example showcases available options. The quotes around "yes" are required.
sanoid_datasets:
- name: example
use_template: example
recursive: "yes"
process_children_only: "yes"
yearly: 1
Dictionary of datasets to take snapshots of. The example showcases some of the available options. In addition, options from sanoid_templates are available as well. The quotes around "yes" are required.
- hosts: all
vars:
- name: tank
process_children_only: "yes"
recursive: "yes"
use_template: example
roles:
- radek_sprta.sanoid
MIT
Radek Sprta [email protected]