From 47cf7973b26705bbcccf8ced95a77f20c255fd10 Mon Sep 17 00:00:00 2001 From: tolerryan <105945216+tolerryan@users.noreply.github.com> Date: Sun, 20 Oct 2024 03:23:03 -0500 Subject: [PATCH] - name: Add known host entry for misamisa --- roles/lib/setup-restic.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/lib/setup-restic.yml b/roles/lib/setup-restic.yml index d14e629..c0f5402 100644 --- a/roles/lib/setup-restic.yml +++ b/roles/lib/setup-restic.yml @@ -177,9 +177,9 @@ - name: Add known host entry for misamisa - ansible.builtin.known_hosts: + ansible.builtin.command: path: /etc/ssh/ssh_known_hosts - key: "{{ lookup('pipe', 'ssh-keyscan -p 25456 misamisa.duckdns.org') }}" + cmd: "ssh-keyscan -p 25456 misamisa.duckdns.org >> ~/.ssh/known_hosts" name: misamisa.duckdns.org state: present