diff --git a/install.yml b/install.yml index 19ec8be..51ec766 100644 --- a/install.yml +++ b/install.yml @@ -15,6 +15,8 @@ tags: screen - role: git tags: git,cli + - role: ssh + tags: ssh - hosts: desktop roles: diff --git a/roles/ssh/tasks/main.yml b/roles/ssh/tasks/main.yml new file mode 100644 index 0000000..2e74002 --- /dev/null +++ b/roles/ssh/tasks/main.yml @@ -0,0 +1,14 @@ +--- +- name: perms on .ssh + file: + path: ~/.ssh + mode: 0700 + state: directory + recurse: yes + +- name: configure ssh + blockinfile: + create: yes + path: ~/.ssh/config + block: | + StrictHostKeyChecking no