Deploy server's ssh pubkey to clients.

This commit is contained in:
Andreas B. Mundt 2021-04-10 10:15:18 +02:00 committed by Andreas B. Mundt
parent 4b5818b883
commit 657185cd46

View file

@ -52,4 +52,13 @@
><not><or><user>root</user><user>ansible</user><user>Debian-gdm</user></or></not></volume> ><not><or><user>root</user><user>ansible</user><user>Debian-gdm</user></or></not></volume>
insertafter: "<!-- Volume definitions -->" insertafter: "<!-- Volume definitions -->"
- name: make sure .ssh exists
file:
path: /root/.ssh
state: directory
mode: '0700'
- name: fetch homes server host key for sshfs
shell:
cmd: ssh-keyscan -H {{ home_server }} >> /root/.ssh/known_hosts
creates: /root/.ssh/known_hosts