From 4e54f45347550717955398aca05df5b8e1cdf688 Mon Sep 17 00:00:00 2001 From: eoli3n Date: Thu, 13 May 2021 10:15:36 +0200 Subject: [PATCH] added ssh config --- install.yml | 2 ++ roles/ssh/tasks/main.yml | 14 ++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 roles/ssh/tasks/main.yml 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