From 170bb929fa38287d0ed6f7f7a0dc10cd297e649c Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Mon, 9 Nov 2015 21:12:28 +0100 Subject: [PATCH] Prevent rebuild of YouCompleteMe. --- tasks/pathogen-plugins.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tasks/pathogen-plugins.yml b/tasks/pathogen-plugins.yml index d9bda39..c60d8d0 100644 --- a/tasks/pathogen-plugins.yml +++ b/tasks/pathogen-plugins.yml @@ -145,7 +145,7 @@ # become_user: "{{item}}" # with_items: users -- name: Install YouCompleteMe plugin +- name: Fetch YouCompleteMe plugin git: repo=https://github.com/Valloric/YouCompleteMe.git dest=~/.vim/bundle/YouCompleteMe @@ -155,9 +155,15 @@ become_user: "{{item}}" with_items: users -- name: Install YouCompleteMe library +- name: Detect YouCompleteMe built plugin + register: youcompleteme_exists + command: test -f ~/.vim/bundle/YouCompleteMe/third_party/ycmd/ycm_core.so + ignore_errors: True + +- name: Build YouCompleteMe plugin shell: cd ~/.vim/bundle/YouCompleteMe ; ./install.sh become: true become_user: "{{item}}" with_items: users + when: youcompleteme_exists|failed