commit 6f70b0002643e5f07a728ba2365e1022683133c7
parent 05f759719f18b26449cd4d19e1d1d5fa342b78d5
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 20 Apr 2025 14:59:03 +0200
skip if exists
Diffstat:
2 files changed, 1 insertion(+), 0 deletions(-)
diff --git a/import.sh b/import.sh
diff --git a/roles/borg-start/tasks/main.yml b/roles/borg-start/tasks/main.yml
@@ -31,6 +31,7 @@
- name: Add host key for borg server
ansible.builtin.shell:
cmd: ssh-keyscan {{ BORG_HOST }} >> .ssh/known_hosts
+ creates: /root/.ssh/known_hosts
- name: Fail if we do not have an SSH key for the backup server
fail: