initial version: hadoly's

This commit is contained in:
2025-10-19 18:36:48 +02:00
commit 1ce512d844
14 changed files with 303 additions and 0 deletions

28
tasks/install.yml Normal file
View 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