summaryrefslogtreecommitdiff
path: root/roles/common-linux/tasks/ycm.yml
diff options
context:
space:
mode:
authoradmin2024-09-19 18:18:07 +0200
committeradmin2024-09-19 18:18:07 +0200
commit7a4f7fd75c9a55c0a2013b6e6474f9dd4ef30a24 (patch)
tree4f5d12282b07c7e37f306cc4e27e92e0f5ebb4f4 /roles/common-linux/tasks/ycm.yml
parent31dbecc7892afd156a560ee890314e6f2edae4ae (diff)
downloadansible-7a4f7fd75c9a55c0a2013b6e6474f9dd4ef30a24.tar.gz
fix support for vim
Diffstat (limited to 'roles/common-linux/tasks/ycm.yml')
-rw-r--r--roles/common-linux/tasks/ycm.yml48
1 files changed, 48 insertions, 0 deletions
diff --git a/roles/common-linux/tasks/ycm.yml b/roles/common-linux/tasks/ycm.yml
new file mode 100644
index 0000000..177535a
--- /dev/null
+++ b/roles/common-linux/tasks/ycm.yml
@@ -0,0 +1,48 @@
+- name: git clone YouCompleteMe for user
+ become: true
+ become_user: horus
+ git:
+ repo: https://github.com/ycm-core/YouCompleteMe.git
+ dest: /home/horus/.vim/bundle/YouCompleteMe
+
+- name: YCM checkout commit hash before requirement changed to vim 9.1
+ become: yes
+ become_user: horus
+ command:
+ cmd: git checkout b6e8c64d96b02d60b3751d6a51af7dc958054f8f
+ args:
+ chdir: /home/horus/.vim/bundle/YouCompleteMe
+
+- name: git clone YouCompleteMe for root
+ git:
+ repo: https://github.com/ycm-core/YouCompleteMe.git
+ dest: /home/horus/.vim/bundle/YouCompleteMe
+
+- name: YCM checkout commit hash before requirement changed to vim 9.1 for root
+ command:
+ cmd: git checkout b6e8c64d96b02d60b3751d6a51af7dc958054f8f
+ args:
+ chdir: /root/.vim/bundle/YouCompleteMe
+
+- name: Check vim-hn installed for user
+ ansible.builtin.stat:
+ path: /home/horus/.vim/bundle/vim-hackernews
+ register: vimhn_user_installed
+
+- name: git clone ryanss/vim-hackernews
+ become: true
+ become_user: horus
+ git:
+ repo: https://git.iamfabulous.de/vim-hn
+ dest: /home/horus/.vim/bundle/vim-hackernews
+ when: not vimhn_user_installed
+
+- name: git clone ryanss/vim-hackernews for root
+ git:
+ repo: https://git.iamfabulous.de/vim-hn
+
+- name: Check vundle installed for user
+ ansible.builtin.stat:
+ path: /home/horus/.vim/bundle/Vundle.vim
+ register: vundle_user_installed
+ dest: /root/.vim/bundle/vim-hackernews