From 5cb75685e27a0a35973698c0eb84cbb33229269f Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Fri, 15 Nov 2019 22:00:56 +0000 Subject: [PATCH] Add ssh role --- .gitattributes | 2 +- dotfiles.yml | 2 +- {dotfiles/.ssh => roles/ssh/files}/config | Bin roles/ssh/tasks/main.yml | 13 +++++++++++++ 4 files changed, 15 insertions(+), 2 deletions(-) rename {dotfiles/.ssh => roles/ssh/files}/config (100%) create mode 100644 roles/ssh/tasks/main.yml diff --git a/.gitattributes b/.gitattributes index e0de9b0..98a8062 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1 @@ -dotfiles/.ssh/config filter=git-crypt diff=git-crypt +roles/ssh/files/config filter=git-crypt diff=git-crypt diff --git a/dotfiles.yml b/dotfiles.yml index 7a19a57..d7ffcbd 100644 --- a/dotfiles.yml +++ b/dotfiles.yml @@ -14,6 +14,6 @@ - mintty - python - readline - #- ssh + - ssh - tmux - vim diff --git a/dotfiles/.ssh/config b/roles/ssh/files/config similarity index 100% rename from dotfiles/.ssh/config rename to roles/ssh/files/config diff --git a/roles/ssh/tasks/main.yml b/roles/ssh/tasks/main.yml new file mode 100644 index 0000000..32b39cb --- /dev/null +++ b/roles/ssh/tasks/main.yml @@ -0,0 +1,13 @@ +--- +- name: Create the SSH directory + file: + path: ~/.ssh + state: directory + +- name: Deploy SSH config + file: + src: "{{ role_path }}/files/config" + dest: ~/.ssh/config + state: link + force: yes +