install restic by copying

This commit is contained in:
Andreas Zweili 2021-08-23 14:53:08 +02:00
parent 5fb79d725c
commit bdd3148613
1 changed files with 8 additions and 2 deletions

View File

@ -3,9 +3,15 @@
url: "{{ restic_url }}"
dest: /tmp/restic.bz2
- name: "Install restic"
- name: "Extract restic"
unarchive:
src: "/tmp/restic.bz2"
dest: /usr/bin/restic
dest: "/tmp"
remote_src: yes
- name: "Install restic"
copy:
src: "/tmp/restic_{{ restic_version }}_linux_amd64"
dest: "/urs/bin/restic"
remote_src: yes
mode: "751"