/
/
/
Ansible role that can run restic backups and push it to a remote storage server.
1---
2# Backup Role Default Variables
3
4# Operation Mode
5backup_mode: "backup" # backup|restore
6
7# Service and Host Selection
8backup_services: [] # Empty = all services on host
9backup_hosts: [] # Empty = all hosts
10
11# Restic Configuration
12restic_repo: "{{ restic_backup_repo | default('rest:http://storage.home:8000/backup') }}"
13restic_password: "{{ restic_backup_password | default('changeme') }}"
14restic_backup_args: "--verbose"
15restic_retention_args: "--keep-last 10"
16restic_retention_enable: true
17restic_env_extra: {}
18
19# Backup Settings
20backup_health_check: true
21backup_health_timeout_sec: 300
22backup_health_interval_sec: 10
23
24# Restic Package
25backup_restic_pkg_name: restic
26backup_install_restic: true