20 lines
469 B
YAML
20 lines
469 B
YAML
---
|
|
|
|
- name: Download restic
|
|
ansible.builtin.get_url:
|
|
url: "{{ restic_download_url }}"
|
|
dest: "/tmp"
|
|
mode: 0644
|
|
|
|
- name: Uncompress restic
|
|
ansible.builtin.shell:
|
|
cmd: "bzip2 -dc /tmp/restic_{{ restic_version }}_{{ restic_system }}_{{ restic_architecture }}.bz2 > {{ restic_path }}"
|
|
changed_when: true
|
|
|
|
- name: Check restic exe
|
|
ansible.builtin.file:
|
|
path: "{{ restic_path }}"
|
|
mode: 0755
|
|
owner: root
|
|
group: "{{ restic_exe_group }}"
|