diff --git a/roles/neovim/tasks/unix.yaml b/roles/neovim/tasks/unix.yaml index 39ce262..f6266c8 100644 --- a/roles/neovim/tasks/unix.yaml +++ b/roles/neovim/tasks/unix.yaml @@ -1,9 +1,9 @@ --- -- name: clone config repo - git: - repo: git@code.infektor.net:config/vim.git - dest: ~/.config/nvim - version: master +# - name: clone config repo +# git: +# repo: git@code.infektor.net:config/vim.git +# dest: ~/.config/nvim +# version: master # TODO: - name: set repo email @@ -12,3 +12,14 @@ name: '{{neovim_pip_packages}}' state: latest extra_args: --user + +- set_fact: + config_repo_tasks_path: ~/.config/nvim/tasks.yaml + +- name: check for config repo tasks.yaml + stat: + path: '{{config_repo_tasks_path}}' + register: config_repo_tasks + +- when: config_repo_tasks.stat.exists + include_tasks: '{{config_repo_tasks_path}}'