From 644a33f974ed5fadee93943f6f36f040ef9bc572 Mon Sep 17 00:00:00 2001 From: Frank Dornheim <524257+conloos@users.noreply.github.com> Date: Sat, 11 Mar 2023 23:12:07 +0100 Subject: [PATCH] Set allways the borg_ssh_key_file and borg_ssh_command to load the right ssh-key. Add borg_ssh_key_type to select the key type by user --- defaults/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 628e62a..b50a9f2 100755 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -5,9 +5,10 @@ borg_one_file_system: true borg_exclude_from: [] borg_encryption_passcommand: false borg_lock_wait_time: 5 -borg_ssh_command: false # If you use a useraccount and not root see the next lines -# borg_ssh_key_file: "{{ backup_user_info.home }}/.ssh/id_rsa" +borg_ssh_key_file: "{{ backup_user_info.home }}/.ssh/backup" +borg_ssh_command: "ssh -i {{ backup_ssh_key_file }}" # borg_ssh_command: "ssh -i {{ backup_ssh_key_file }} -o StrictHostKeyChecking=no" +borg_ssh_key_type: "rsa" borg_remote_path: false borg_remote_rate_limit: 0 borg_retention_policy: