initial version: hadoly's
This commit is contained in:
28
tasks/install.yml
Normal file
28
tasks/install.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
---
|
||||
- name: get borg binary
|
||||
get_url:
|
||||
dest: /usr/bin/borg
|
||||
owner: root
|
||||
group: backup
|
||||
mode: "0750"
|
||||
url: https://github.com/borgbackup/borg/releases/download/{{ borg_release }}/borg-linux64
|
||||
|
||||
- name: ensure /root/bin exists
|
||||
file:
|
||||
path: "{{ borg_script_dir }}"
|
||||
state: directory
|
||||
|
||||
- name: get borgbackup script
|
||||
tags: wip
|
||||
get_url:
|
||||
url: "{{ item.url }}"
|
||||
mode: "{{ item.mode }}"
|
||||
dest: "{{ borg_script_dir }}"
|
||||
loop:
|
||||
- { url: "https://git.hadoly.fr/CS_CT/borg/raw/tag/1.0/borg.sh", mode: "0700" }
|
||||
|
||||
- name: get borgbackup config
|
||||
template:
|
||||
src: borg.conf.jj
|
||||
dest: "{{ borg_script_dir }}/borg.conf"
|
||||
mode: 0600
|
||||
Reference in New Issue
Block a user