From ad89f1ae48d7e9283df7d78fe78c2d6457844176 Mon Sep 17 00:00:00 2001 From: Ricard Illa Date: Sun, 4 Sep 2022 16:19:45 +0200 Subject: [PATCH] ssh known hosts --- roles/sshd/files/ssh_known_hosts | 14 ++++++++++++++ roles/sshd/tasks/certs.yml | 8 ++++++++ 2 files changed, 22 insertions(+) create mode 100644 roles/sshd/files/ssh_known_hosts diff --git a/roles/sshd/files/ssh_known_hosts b/roles/sshd/files/ssh_known_hosts new file mode 100644 index 0000000..dd3e3a1 --- /dev/null +++ b/roles/sshd/files/ssh_known_hosts @@ -0,0 +1,14 @@ +$ANSIBLE_VAULT;1.1;AES256 +30663736636237313364336337326635386534643066313331663938343963303834653861396135 +6539333062323635633434363131383131353964363038650a636639383033396266396633356364 +33613537306665643265336539323965363331646263343532656238313266613965383736313162 +6332333035356537610a333035613730666138303533643134316332303039636235303233663232 +32333237646234333638616265623930333561313236326263313639323563643536613966303431 +64616438366261663865366632303633353333326436646531616365343066626134323534323436 +32373665303033346132663264343231656134623930303866383731623132313063356334376134 +66383263393164333461356339356434323666376331366331613932663834346333366538616532 +31373230353265373163646261326235613934653533663134666263643463663135313230616265 +35306632343132623237333437343165393238356132326639323933353437613962333263383434 +31623265306333623366373339396630373837343937663239333535653863343665353935336237 +62636632386336383233306566326663363363323132306564363934346439633665636463623163 +36326362383263303834316234643530633166636630646565623962373235343339 diff --git a/roles/sshd/tasks/certs.yml b/roles/sshd/tasks/certs.yml index da61c8b..72fdf01 100644 --- a/roles/sshd/tasks/certs.yml +++ b/roles/sshd/tasks/certs.yml @@ -29,3 +29,11 @@ mode: '0644' owner: root group: root + +- name: copy ssh_known_hosts + copy: + src: ssh_known_hosts + dest: "/etc/ssh/ssh_known_hosts" + mode: '0644' + owner: root + group: root