From 0310e0ae6e758bc572f914d6352515f11c9939c6 Mon Sep 17 00:00:00 2001 From: tolerryan <105945216+tolerryan@users.noreply.github.com> Date: Sun, 20 Oct 2024 03:33:41 -0500 Subject: [PATCH] hostkey --- roles/lib/setup-restic.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/roles/lib/setup-restic.yml b/roles/lib/setup-restic.yml index 2af8154..5e407df 100644 --- a/roles/lib/setup-restic.yml +++ b/roles/lib/setup-restic.yml @@ -175,9 +175,14 @@ group: users mode: '0644' - - name: Add known host entry for misamisa - ansible.builtin.command: + copy: + + dest: /etc/ssh/ssh_known_hosts + content: "{{ misamisa_hostkey }}" + owner: restic + group: users + mode: '0644' cmd: "ssh-keyscan -p 25456 misamisa.duckdns.org >> ~/.ssh/known_hosts" creates: /etc/ssh/ssh_known_hosts