feat: add restic role and pb
This commit is contained in:
17
roles/restic/tasks/install.yml
Normal file
17
roles/restic/tasks/install.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
|
||||
- name: download restic
|
||||
get_url:
|
||||
url: "{{ restic_download_url }}"
|
||||
dest: "/tmp"
|
||||
|
||||
- name: uncompress restic
|
||||
shell:
|
||||
cmd: "bzip2 -dc /tmp/restic_{{ restic_version }}_{{ restic_system }}_{{ restic_architecture }}.bz2 > {{ restic_path }}"
|
||||
|
||||
- name: check restic exe
|
||||
file:
|
||||
path: "{{ restic_path }}"
|
||||
mode: 0755
|
||||
owner: root
|
||||
group: root
|
Reference in New Issue
Block a user