generated from ansible/ansible_template
26 lines
487 B
YAML
26 lines
487 B
YAML
- name: "Download restic"
|
|
get_url:
|
|
url: "{{ restic_url }}"
|
|
dest: /tmp/restic.bz2
|
|
|
|
- name: "Extract restic"
|
|
command: "bzip2 -df /tmp/restic.bz2"
|
|
|
|
- name: "Install restic"
|
|
copy:
|
|
src: "/tmp/restic"
|
|
dest: "/usr/bin/restic"
|
|
remote_src: yes
|
|
mode: "751"
|
|
|
|
- name: "Create the restic config dir"
|
|
file:
|
|
path: "/etc/restic/"
|
|
state: directory
|
|
mode: "0755"
|
|
|
|
- name: "Copy excludes file"
|
|
copy:
|
|
src: "excludes.txt"
|
|
dest: "/etc/restic/excludes.txt"
|