This commit is contained in:
Bart Sjerps
2026-07-20 11:20:51 +02:00
parent 6eddb7e2c5
commit ee8ca96a7b
35 changed files with 285 additions and 27 deletions
+7 -3
View File
@@ -17,11 +17,15 @@
- name: Deploy borgmatic config
template:
src: templates/borgmatic-system.yaml
dest: /etc/borgmatic.d/system.yaml
src: "{{ item.source }}"
dest: "{{ item.target }}"
owner: root
group: root
mode: '0644'
loop:
- { source: "templates/borgmatic-system.yaml", target: "/etc/borgmatic.d/system.yaml" }
- { source: "templates/borgmatic-data.yaml", target: "/etc/borgmatic.d/data.yaml" }
- name: Deploy borgmatic excludes
template:
@@ -55,7 +59,7 @@
- name: Pickup authorized_key
fetch:
src: /etc/borgmatic/authorized_keys
dest: authorized_keys/{{ ansible_fqdn }}
dest: authorized_keys/{{ ansible_hostname }}
flat: yes
- name: Setup Backup Cron Job