radek_sprta.sanoid
Ansible Role: Sanoid
This Ansible role helps you install and set up Sanoid for automatic ZFS snapshots.
Role Variables
Here are some variables you can find in defaults/main.yml
.
sanoid_package: sanoid
This is the package to install. Normally, you don’t need to change this.
sanoid_templates:
- name: example
frequently: 0
hourly: 24
daily: 7
monthly: 12
yearly: 0
autosnap: "yes"
autoprune: "yes"
This is a list of Sanoid backup templates. The example shows the options you can use. Remember to include quotes around "yes".
sanoid_datasets:
- name: example
use_template: example
recursive: "yes"
process_children_only: "yes"
yearly: 1
This is a list of datasets for which you want to take snapshots. The example provides some options you can choose from, and you can also use options from sanoid_templates
. Again, quotes around "yes" are necessary.
Example Playbook
Here is an example playbook using the role:
- hosts: all
vars:
- name: tank
process_children_only: "yes"
recursive: "yes"
use_template: example
roles:
- radek_sprta.sanoid
License
MIT
Author Information
Radek Sprta mail@radeksprta.eu
Informazioni sul progetto
Install and configure Sanoid for automatic ZFS snapshots.
Installa
ansible-galaxy install radek_sprta.sanoid
Licenza
mit
Download
282
Proprietario