2019-08-13 13:26:40 +02:00
|
|
|
---
|
|
|
|
# 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:
|
2020-05-18 11:27:38 +02:00
|
|
|
- '{{ restic_download_path }}/bin'
|
2019-09-09 16:08:06 +02:00
|
|
|
- '{{ restic_script_dir }}'
|
2020-12-13 16:53:24 +01:00
|
|
|
- '{{ restic_log_dir }}'
|
2019-08-15 08:36:57 +02:00
|
|
|
|
2019-08-15 08:51:25 +02:00
|
|
|
restic_bin_bath: '{{ restic_download_path }}/bin/restic-{{ restic_version }}'
|
2019-08-15 13:07:53 +02:00
|
|
|
|
|
|
|
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'
|
2019-08-17 09:33:57 +02:00
|
|
|
restic_url_default: '{{ restic_url_r }}{{ restic_url_v }}{{ restic_file }}'
|