Support Debian

This commit is contained in:
2024-07-13 14:33:47 +01:00
parent 713e7541bc
commit 7f5275d240
8 changed files with 58 additions and 19 deletions

View File

@@ -6,13 +6,15 @@
owner: root
group: root
mode: "0700"
- name: Write borgmatic config
copy:
dest: /etc/borgmatic/config.yaml
owner: root
group: root
mode: "0600"
content: "{{ borgmatic_config | to_nice_yaml( width=50, explicit_start=True, explicit_end=True) }}"
content: "{{ borgmatic_config | to_nice_yaml(width=50, explicit_start=True, explicit_end=True) }}"
- name: Create /root/.borgmatic folder
ansible.builtin.file:
path: /root/.borgmatic
@@ -20,6 +22,7 @@
owner: root
group: root
mode: "0700"
- name: "Copy SSH key {{ item }} to borgmatic config folder"
ansible.builtin.copy:
src: "ssh_keys/{{ item }}"