Provide ssh hostkey.
This commit is contained in:
parent
7238875d0c
commit
de52a1eb33
2 changed files with 13 additions and 0 deletions
|
@ -2,3 +2,4 @@ smb_server: "smb.steinbeisschule-reutlingen.de"
|
|||
home_server: "home.steinbeisschule-reutlingen.de"
|
||||
smb_home: "DOCS/fvs/home/"
|
||||
smb_share: "DOCS/fvs/tausch/"
|
||||
ssh_hostkey: '|1|vZQ8Yc2MBY3tYCzTCVOmaIRnep8=|kCp5RNmtBR7WSBX6L9fo9URSOmI= ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBFil1umj7jbBfJ7o80WDXToPidypuD915VNM7mN6mMF/gSJ7QYKtYDgBOR5KDUSB5dvc/itlSobw4rYQr2rE5dQ='
|
||||
|
|
|
@ -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
Reference in a new issue