ansible_role_restic/vars/defaults.yml
Matthias Leutenegger 0930e0aba8
Add script dir to restic_create_paths
Adds the script dir to the initially created directories
2019-09-09 16:08:06 +02:00

22 lines
725 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_install_path }}/bin'
- '{{ restic_script_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 }}'