Provide ssh hostkey.
This commit is contained in:
parent
7238875d0c
commit
de52a1eb33
2 changed files with 13 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue