/
/
/
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
27
28# ==============================================================================
29# APPLIANCE BACKUP (non-Docker services)
30# ==============================================================================
31backup_appliance_enabled: false
32backup_appliance_staging_dir: /docker/appliance-backups
33
34# Home Assistant backup
35backup_ha_enabled: false
36backup_ha_backup_path: /var/lib/homeassistant/backup
37backup_ha_prune_local: true
38backup_ha_keep_local: 3
39
40# OPNsense backup
41backup_opnsense_enabled: false
42backup_opnsense_host: ""
43backup_opnsense_api_key: ""
44backup_opnsense_api_secret: ""
45backup_opnsense_validate_certs: false
46backup_opnsense_prune_local: true
47backup_opnsense_keep_local: 3