Init repo

This commit is contained in:
phil 2023-04-08 21:52:23 +02:00
parent 4fc7125b16
commit 20fc1825e0
2 changed files with 6 additions and 0 deletions

View file

@ -11,6 +11,7 @@ borg_ssh_key_type: "ed25519"
borg_ssh_command: false borg_ssh_command: false
borg_remote_path: false borg_remote_path: false
borg_remote_rate_limit: 0 borg_remote_rate_limit: 0
borg_repo_key: repokey-blake2
borg_retention_policy: borg_retention_policy:
keep_hourly: 3 keep_hourly: 3
keep_daily: 7 keep_daily: 7

View file

@ -27,3 +27,8 @@
user: "{{ borg_user }}" user: "{{ borg_user }}"
cron_file: "{{ borgmatic_timer_cron_name }}" cron_file: "{{ borgmatic_timer_cron_name }}"
job: "borgmatic -c /etc/borgmatic/{{ borgmatic_config_name }}" job: "borgmatic -c /etc/borgmatic/{{ borgmatic_config_name }}"
- name: Init repo
ansible.builtin.expect:
command: "borgmatic init -e {{ borg_repo_key}}"
responses: ^.*want to continue connecting.*$: "yes"