Files
ansible/roles/restic/tasks/install.yml
2024-10-26 10:08:13 +02:00

20 lines
455 B
YAML

---
- name: Download restic
ansible.builtin.get_url:
url: "{{ restic_download_url }}"
dest: "/tmp"
mode: "0o644"
- 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: "0o755"
owner: root
group: root