mirror of
https://github.com/roles-ansible/ansible_role_restic/
synced 2024-12-25 18:50:18 +01:00
7cd26ca0f4
* Added support for basic logging of backup result * Added changelog entry * Added full output logging * Changed logging date format to include the time as well as the date * Fixed error on backup script creation if enable_logging was not specified for a backup job * Improved backup script by removing duplicate code * Added variable restic_log_dir to the readme
23 lines
753 B
YAML
23 lines
753 B
YAML
---
|
|
# we use a platform map to decipher system version
|
|
_platform_map:
|
|
i386: 386
|
|
x86_64: amd64
|
|
aarch64: arm64
|
|
armv7l: arm
|
|
armv6l: arm
|
|
|
|
restic_create_paths:
|
|
- '{{ restic_download_path }}/bin'
|
|
- '{{ restic_script_dir }}'
|
|
- '{{ restic_log_dir }}'
|
|
|
|
restic_bin_bath: '{{ restic_download_path }}/bin/restic-{{ restic_version }}'
|
|
|
|
restic_url_r: 'https://github.com/restic/restic/releases/download/'
|
|
arch: '{{ ansible_architecture }}'
|
|
restic_platform: '{{ _platform_map[arch] | default(arch) }}'
|
|
restic_system: '{{ ansible_system | lower }}'
|
|
restic_url_v: 'v{{ restic_version }}/restic_{{ restic_version }}_'
|
|
restic_file: '{{ restic_system }}_{{ restic_platform }}.bz2'
|
|
restic_url_default: '{{ restic_url_r }}{{ restic_url_v }}{{ restic_file }}'
|