diff --git a/tasks/main.yml b/tasks/main.yml index cfdbf2f..29fb617 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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"