From fc704d45c8d2803dbb2a68196d7ac0dcb237812a Mon Sep 17 00:00:00 2001 From: irekkosek Date: Mon, 12 Jun 2023 16:28:51 +0000 Subject: [PATCH] added github.com to known hosts --- tasks/ssh.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tasks/ssh.yml b/tasks/ssh.yml index b7985b8..7f8cf49 100644 --- a/tasks/ssh.yml +++ b/tasks/ssh.yml @@ -32,3 +32,9 @@ key: "{{ lookup('env', 'HOME') }}/.ssh/id_rsa.pub" with_fileglob: - "{{ lookup('env', 'HOME') }}/.ssh/*.pub" +- name: Add github.com to known hosts + shell: ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts + tags: + - dotfiles + - install + - ssh