added downloading binary
This commit is contained in:
@@ -50,6 +50,9 @@
|
|||||||
- name: Install-docker.yml - setting up docker
|
- name: Install-docker.yml - setting up docker
|
||||||
include: ../lib/install-docker.yml
|
include: ../lib/install-docker.yml
|
||||||
|
|
||||||
|
- name: Install Restic and setup
|
||||||
|
include: ../lib/setup-restic.yml
|
||||||
|
|
||||||
- name: Write docker-compose.yml
|
- name: Write docker-compose.yml
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
content: "{{ docker_compose_definition }}"
|
content: "{{ docker_compose_definition }}"
|
||||||
|
|||||||
0
roles/lib/setup-restic-cron.yml
Normal file
0
roles/lib/setup-restic-cron.yml
Normal file
@@ -126,3 +126,26 @@
|
|||||||
group: users
|
group: users
|
||||||
mode: '0644'
|
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