-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathide.yml
43 lines (37 loc) · 993 Bytes
/
ide.yml
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
- name: "Install editor using apt"
apt:
name: ["vim"]
state: present
become: yes
when: ansible_facts["pkg_mgr"] == "apt"
- name: "Install editor using brew"
community.general.homebrew:
name: ["vim"]
state: present
when: ansible_facts["pkg_mgr"] == "homebrew"
- name: "Clone vimrc"
git:
repo: "git@github.com:edi33416/vim.git"
dest: "{{ ws }}/vimrc"
register: r_vim
- name: "Clone vundle"
git:
repo: "https://github.com/VundleVim/Vundle.vim.git"
dest: "~/.vim/bundle/Vundle.vim"
when: r_vim.changed != false
- name: "Create symlink to vimrc"
file:
src: "{{ ws }}/vimrc/vimrc"
dest: "~/.vimrc"
state: link
when: r_vim.changed != false
- name: "Install plugins"
shell: vim +PluginInstall +qall
args:
stdin: "\n"
when: r_vim.changed != false
- name: "Build YouCompleteMe"
shell: python3 install.py --clangd-completer
args:
chdir: ~/.vim/bundle/YouCompleteMe
when: r_vim.changed != false