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