Files
ansible/roles/restic/tasks/install.yml
2024-07-05 11:53:33 +02:00

20 lines
451 B
YAML

---
- name: Download restic
ansible.builtin.get_url:
url: "{{ restic_download_url }}"
dest: "/tmp"
mode: 0644
- name: Uncompress restic
ansible.builtin.command:
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: root