Initialize borgmatic repository

This commit is contained in:
Tunui Franken 2025-03-30 12:54:25 +02:00
parent 3f3b7da7cc
commit 8a30c77d86
2 changed files with 8 additions and 0 deletions

View file

@ -53,3 +53,10 @@
owner: root owner: root
group: root group: root
mode: 0600 mode: 0600
- name: Initialize borg repository
become: true
ansible.builtin.command:
cmd: borgmatic init --encryption repokey
register: borgmatic_init
changed_when: borgmatic_init.stderr != ''

View file

@ -26,6 +26,7 @@ location:
storage: storage:
encryption_passphrase: "{{ borg_passphrase }}" encryption_passphrase: "{{ borg_passphrase }}"
ssh_command: ssh -o StrictHostKeyChecking=accept-new
retention: retention:
keep_daily: 7 keep_daily: 7