mirror of
https://github.com/roles-ansible/ansible_role_restic.git
synced 2024-12-11 23:41:32 +01:00
restructure
This commit is contained in:
parent
6da5c8b118
commit
06b7ab9b36
2 changed files with 7 additions and 6 deletions
|
@ -1,12 +1,6 @@
|
|||
---
|
||||
- name: Set restic_url
|
||||
set_fact:
|
||||
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: '{{ restic_url_r }}{{ restic_url_v }}{{ restic_file }}'
|
||||
when: restic_url is not defined
|
||||
|
||||
|
|
|
@ -11,3 +11,10 @@ restic_create_paths:
|
|||
- '{{ restic_install_path }}/bin'
|
||||
|
||||
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'
|
||||
|
|
Loading…
Reference in a new issue