zfs-auto-snapshot Ansible role
Branch: master
Clone or download
Latest commit 8ba82ac Feb 12, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
files Do not enforce UTC timezone in snapshot name Feb 11, 2019
tasks Move all crons to a single /etc/cron.d entry Feb 11, 2019
templates Move all crons to a single /etc/cron.d entry Feb 11, 2019
LICENSE Inital commit Feb 10, 2019
README.md Add example playbook Feb 11, 2019


zfs-auto-snapshot Ansible role

This is an ansible role for zfsonlinux/zfs-auto-snapshot, the ZFS Automatic Snapshot Service for Linux.

It will copy the zfs-auto-snapshot script and man(8).

5 cron are available:

  • frequent (every 15 minutes)
  • hourly
  • daily
  • weekly
  • monthly

Each cron has its own retention time.

You can enable/disable crons and tune their retention periods using variables. See defaults/main.yml.

Example playbook



- hosts: zfsbox
  roles: zfs-auto-snapshot
    zfs_auto_snapshot_monthly_disabled: true
    zfs_auto_snapshot_hourly_keep: 48