The initialization of the repository must be activated and does not take place automatically.

This commit is contained in:
Frank Dornheim 2023-03-11 13:40:17 +01:00
parent 2200677f5e
commit 0e109849e7

View File

@ -1,10 +1,10 @@
---
# - name: Init repository
# when:
# - install_backup is not defined or install_backup
# - borgmatic_initialization_repo is not defined or borgmatic_initialization_repo
# tags:
# - install_backup
# ansible.builtin.command:
# cmd: "su - {{ borgbackup_user }} -c '/usr/local/bin/borgmatic rcreate --encryption keyfile --append-only'"
# ...
- name: Init repository
when:
- install_backup is not defined or install_backup
- borgmatic_initialization_repo is defined and borgmatic_initialization_repo
tags:
- install_backup
ansible.builtin.command:
cmd: "su - {{ borgbackup_user }} -c '/usr/local/bin/borgmatic rcreate --encryption keyfile --append-only'"
...