added downloading binary
This commit is contained in:
0
roles/lib/setup-restic-cron.yml
Normal file
0
roles/lib/setup-restic-cron.yml
Normal file
@@ -126,3 +126,26 @@
|
||||
group: users
|
||||
mode: '0644'
|
||||
|
||||
- name: Download restic bz2 file
|
||||
get_url:
|
||||
url: "https://github.com/restic/restic/releases/download/v0.17.1/restic_0.17.1_linux_amd64.bz2"
|
||||
dest: "/tmp/restic.bz2"
|
||||
mode: '0755'
|
||||
|
||||
- name: Extract restic bz2 file
|
||||
unarchive:
|
||||
src: "/tmp/restic.bz2"
|
||||
dest: "/tmp"
|
||||
remote_src: yes
|
||||
extra_opts: ["--strip-components=1"]
|
||||
|
||||
- name: Move restic to /usr/bin/
|
||||
copy:
|
||||
src: "/tmp/restic"
|
||||
dest: "/usr/bin/restic"
|
||||
remote_src: yes
|
||||
|
||||
- name: Make restic executable
|
||||
command: chmod +x /usr/bin/restic
|
||||
args:
|
||||
creates: /usr/bin/restic
|
||||
Reference in New Issue
Block a user