Provide ssh hostkey.

This commit is contained in:
Andreas B. Mundt 2020-12-18 08:52:25 +01:00
parent 7238875d0c
commit de52a1eb33
2 changed files with 13 additions and 0 deletions

View file

@ -33,3 +33,15 @@
ssh="0" noroot="0"
><not><or><user>ansible</user><user>Debian-gdm</user></or></not></volume>
insertafter: "<!-- Volume definitions -->"
- name: make sure .ssh exists
file:
path: /root/.ssh
state: directory
mode: '0700'
- name: provide public key of home server
lineinfile:
path: /root/.ssh/known_hosts
line: "{{ ssh_hostkey }}"
create: yes