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 +