From 5433ec428ded86290878a2d684aef66455484c02 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Wed, 4 Jul 2018 12:39:19 -0400 Subject: [PATCH] Add working vim sync --- roles/core/tasks/main.yml | 1 - roles/vim/tasks/main.yml | 8 ++++---- skel.vim/.vim/autoload/.gitkeep | 0 skel.vim/.vim/backup/.gitkeep | 0 skel.vim/.vim/plugin/.gitkeep | 0 skel.vim/.vim/tmp/.gitkeep | 0 skel.vim/.vim/undo/.gitkeep | 0 7 files changed, 4 insertions(+), 5 deletions(-) delete mode 100644 skel.vim/.vim/autoload/.gitkeep delete mode 100644 skel.vim/.vim/backup/.gitkeep delete mode 100644 skel.vim/.vim/plugin/.gitkeep delete mode 100644 skel.vim/.vim/tmp/.gitkeep delete mode 100644 skel.vim/.vim/undo/.gitkeep diff --git a/roles/core/tasks/main.yml b/roles/core/tasks/main.yml index 90c0a9d..5eb5015 100644 --- a/roles/core/tasks/main.yml +++ b/roles/core/tasks/main.yml @@ -18,6 +18,5 @@ clone: yes update: yes force: yes - become: no - name: Install fzf shell: "{{ local_path|quote }}/.fzf/install --bin" diff --git a/roles/vim/tasks/main.yml b/roles/vim/tasks/main.yml index d28ec20..4f04a8e 100644 --- a/roles/vim/tasks/main.yml +++ b/roles/vim/tasks/main.yml @@ -1,6 +1,6 @@ -- name: Link vimrc +- name: Link files file: - src: "{{ playbook_dir }}/skel.vim/.vimrc" - dest: "{{ local_path }}/.vimrc" + src: "{{ item.src }}" + dest: "{{ local_path }}/{{ item.path }}" state: link - become: no + with_filetree: "skel.vim/" diff --git a/skel.vim/.vim/autoload/.gitkeep b/skel.vim/.vim/autoload/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/skel.vim/.vim/backup/.gitkeep b/skel.vim/.vim/backup/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/skel.vim/.vim/plugin/.gitkeep b/skel.vim/.vim/plugin/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/skel.vim/.vim/tmp/.gitkeep b/skel.vim/.vim/tmp/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/skel.vim/.vim/undo/.gitkeep b/skel.vim/.vim/undo/.gitkeep deleted file mode 100644 index e69de29..0000000