-
Notifications
You must be signed in to change notification settings - Fork 0
/
njia.yml
57 lines (50 loc) · 1.38 KB
/
njia.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
---
- hosts: localhost
connection: local
tasks:
- name: Create .vim directory
file: path={{item}} state=directory mode=0755
with_items:
- ~/.vim
- ~/.config/nvim
- name: Check out Solarized color scheme for VIM
git:
repo: [email protected]:vim-scripts/Solarized.git
dest: ~/.vim/plugged/Solarized/
accept_hostkey: yes
- name: Setup Vim config files
file: src=~/src/65843/{{item.SRC}} dest={{item.DEST}} state=link
with_items:
- {SRC: gitconfig, DEST: ~/.gitconfig}
- {SRC: ansible.cfg, DEST: ~/.ansible.cfg}
- {SRC: vimrc, DEST: ~/.vimrc}
- {SRC: autoload, DEST: ~/.vim/autoload}
- {SRC: vimrc, DEST: ~/.config/nvim/init.vim}
- {SRC: autoload, DEST: ~/.config/nvim/autoload}
- name: Link plugged directory to neovim
file: src=~/.vim/plugged dest=~/.config/nvim/plugged state=link
- name: Insall software pacman (Archi, Manjaro)
when: ansible_pkg_mgr == 'pacman'
pacman: name={{item}} state=latest
become: true
with_items:
- cmake
- dstat
- git
- glances
- go
- go-tools
- iftop
- iotop
- lshw
- neovim
- nethogs
- pkgfile
- ruby
- stress
- sysstat
- the_silver_searcher
- tree
- vim
- name: Install/Update Vim plugins
command: "vim +PlugUpdate +qall!"