Skip to main content

Snapper Role

Install and configure Snapper filesystem snapshots.


Variables​

VariableTypeOptionsDefaultDescription
snapper_configslist of dict---[{"name":"home","path":"/home","allow_users":"{{ ansible_user }}","sync_acl":"yes","timeline_create":"yes","timeline_cleanup":"yes","timeline_min_age":3600,"timeline_limit_hourly":5,"timeline_limit_daily":7,"timeline_limit_weekly":4,"timeline_limit_monthly":6,"timeline_limit_yearly":3,"number_cleanup":"yes"}]list of snapper configurations to create
snapper_configs.namestring---configuration name
snapper_configs.pathstring---subvolume path to manage
snapper_configs.allow_usersstring---comma-separated list of users allowed to create snapshots
snapper_configs.sync_aclstringyes, nosynchronize ACLs from subvolume to .snapshots
snapper_configs.timeline_createstringyes, noenable timeline snapshots
snapper_configs.timeline_cleanupstringyes, noenable automatic timeline cleanup
snapper_configs.timeline_min_ageinteger---minimum age in seconds between snapshots
snapper_configs.timeline_limit_hourlyinteger---number of hourly snapshots to keep
snapper_configs.timeline_limit_dailyinteger---number of daily snapshots to keep
snapper_configs.timeline_limit_weeklyinteger---number of weekly snapshots to keep
snapper_configs.timeline_limit_monthlyinteger---number of monthly snapshots to keep
snapper_configs.timeline_limit_yearlyinteger---number of yearly snapshots to keep
snapper_configs.number_cleanupstringyes, noenable number-based cleanup
snapper_enable_timeline_timerbooltrue, falsetrueenable the snapper timeline timer
snapper_enable_cleanup_timerbooltrue, falsetrueenable the snapper cleanup timer
snapper_add_to_fstabbooltrue, falsetruemount .snapshots subvolumes via fstab