restic rest server configuration

This commit is contained in:
Jef Roosens 2026-04-20 21:57:58 +02:00
parent fcd36a1035
commit 5f4d69ff17
Signed by: Jef Roosens
GPG key ID: 21FD3D77D56BAF49
7 changed files with 136 additions and 55 deletions

View file

@ -7,13 +7,14 @@
- name: Ensure compressed binary is downloaded
ansible.builtin.get_url:
url: "https://github.com/restic/restic/releases/download/v{{ restic_version }}/restic_{{ restic_version }}_linux_arm64.bz2"
url: "https://github.com/restic/restic/releases/download/v{{ restic_version }}/restic_{{ restic_version }}_linux_amd64.bz2"
dest: "/opt/restic/{{ restic_version }}/restic-{{ restic_version }}.bz2"
register: res
- name: Ensure binary is decompressed
ansible.builtin.shell:
cmd: "bunzip2 -k /opt/restic/{{ restic_version }}/restic-{{ restic_version }}.bz2"
creates: "/opt/restic/{{ restic_version }}/restic-{{ restic_version }}"
when: 'res.changed'
- name: Ensure binary is copied to correct location