diff --git a/roles/add-sshkey/tasks/main.yaml b/roles/add-sshkey/tasks/main.yaml index 74e9f2353..facb504b5 100644 --- a/roles/add-sshkey/tasks/main.yaml +++ b/roles/add-sshkey/tasks/main.yaml @@ -1,3 +1,9 @@ +- name: Ensure that ssh home directory exists + file: + path: "~/.ssh" + state: directory + mode: 0700 + - name: Write out ssh key copy: dest: "~/.ssh/id_rsa"