From bdd314861342f4ee6639b13d5dfd0e9d324b4b42 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Mon, 23 Aug 2021 14:53:08 +0200 Subject: [PATCH] install restic by copying --- tasks/main.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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"