Aisbergg.snapper

Ansible Role: aisbergg.snapper

This Ansible role is used to install and set up Snapper, a tool for taking snapshots on Linux systems.

Requirements

To use Snapper, the system must have a compatible filesystem like Btrfs.

Role Variables

Variable Default Description
snapper_templates {} A set of Snapper templates. These can be used when creating configurations manually. You can check available options in the templates/snapper-config.j2 file.
snapper_timer_timeline_enabled true Turn the timeline timer on or off.
snapper_timer_cleanup_enabled true Turn the cleanup timer on or off.
snapper_timer_boot_enabled false Turn the boot timer on or off.
snapper_configs [] A list of Snapper configurations to be set up on the system.
snapper_configs.path The path to the volume (like a Btrfs subvolume).
snapper_configs.name The name for the Snapper configuration.
snapper_configs.vars {} A set of variables for the configuration. Available options can be found in the templates/snapper-config.j2 file.
snapper_configs_absent [] A list of Snapper configurations that should not be on the system.

Example Playbook

- hosts: all
  vars:
    snapper_templates:
      default:
        TIMELINE_LIMIT_HOURLY: 2
        TIMELINE_LIMIT_DAILY: 12

    snapper_configs:
      - path: /
        name: root
        vars:
          TIMELINE_LIMIT_HOURLY: 2
          TIMELINE_LIMIT_DAILY: 12
      - path: /no/timeline
        name: no-timeline
        vars:
          TIMELINE_CREATE: false
          TIMELINE_CLEANUP: false
  roles:
    - aisbergg.snapper

License

MIT

Author Information

Andre Lehmann (aisberg@posteo.de)

Informazioni sul progetto

Install and configure Snapper, a snapshot tool for Linux.

Installa
ansible-galaxy install Aisbergg.snapper
Licenza
mit
Download
13.4k
Proprietario
DevOps, Go, Python, Bash, Ansible, Docker, GitLab-CI, Linux, MariaDB, PostgreSQL, Open Source, Communication Design, Running