summaryrefslogtreecommitdiff
path: root/roles/common-linux/tasks/ycm.yml
blob: 177535a978e6928d4b45ffe88cd3b5a1718a8684 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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