diff --git a/roles/smb-sshfs-client/tasks/main.yml b/roles/smb-sshfs-client/tasks/main.yml index adedc0e..c3cd238 100644 --- a/roles/smb-sshfs-client/tasks/main.yml +++ b/roles/smb-sshfs-client/tasks/main.yml @@ -52,4 +52,13 @@ >rootansibleDebian-gdm insertafter: "" +- 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