mirror of
https://github.com/roles-ansible/ansible_role_restic_archiver.git
synced 2024-08-16 10:09:49 +02:00
add restic_url
to defaults
This commit is contained in:
parent
8225a86c0b
commit
24bfc275d0
3 changed files with 2 additions and 5 deletions
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
# defaults file for skeleton
|
# defaults file for skeleton
|
||||||
|
restic_url: '{{ restic_url_default }}'
|
||||||
restic_version: '0.9.5'
|
restic_version: '0.9.5'
|
||||||
restic_download_path: '/opt/restic'
|
restic_download_path: '/opt/restic'
|
||||||
restic_install_path: '/usr/bin'
|
restic_install_path: '/usr/bin'
|
||||||
|
|
|
@ -1,9 +1,4 @@
|
||||||
---
|
---
|
||||||
- name: Set restic_url
|
|
||||||
set_fact:
|
|
||||||
restic_url: '{{ restic_url_r }}{{ restic_url_v }}{{ restic_file }}'
|
|
||||||
when: restic_url is not defined
|
|
||||||
|
|
||||||
- name: Download client binary
|
- name: Download client binary
|
||||||
get_url:
|
get_url:
|
||||||
url: '{{ restic_url }}'
|
url: '{{ restic_url }}'
|
||||||
|
|
|
@ -18,3 +18,4 @@ restic_platform: '{{ _platform_map[arch] | default(arch) }}'
|
||||||
restic_system: '{{ ansible_system | lower }}'
|
restic_system: '{{ ansible_system | lower }}'
|
||||||
restic_url_v: 'v{{ restic_version }}/restic_{{ restic_version }}_'
|
restic_url_v: 'v{{ restic_version }}/restic_{{ restic_version }}_'
|
||||||
restic_file: '{{ restic_system }}_{{ restic_platform }}.bz2'
|
restic_file: '{{ restic_system }}_{{ restic_platform }}.bz2'
|
||||||
|
restic_url_default: '{{ restic_url_r }}{{ restic_url_v }}{{ restic_file }}'
|
Loading…
Reference in a new issue