49 lines
1.1 KiB
YAML
49 lines
1.1 KiB
YAML
- name: Install dev packages
|
|
aur:
|
|
skip_installed: true
|
|
name: "{{ item }}"
|
|
become: true
|
|
become_user: aur_builder
|
|
when: item not in installed_packages.stdout_lines
|
|
loop:
|
|
- gvim
|
|
- vim-pathogen
|
|
|
|
- name: Install vimrc
|
|
copy:
|
|
src: ./files/vimrc
|
|
dest: "{{ home }}/.vimrc"
|
|
mode: 0644
|
|
owner: "{{ user }}"
|
|
group: users
|
|
|
|
- name: Install vimrc for root user
|
|
copy:
|
|
src: ./files/vimrc
|
|
dest: /root/.vimrc
|
|
mode: 0644
|
|
owner: root
|
|
group: users
|
|
|
|
- name: Create vim packages directory
|
|
file:
|
|
path: "{{ home }}/.vim/bundle"
|
|
state: directory
|
|
owner: "{{ user }}"
|
|
mode: 0755
|
|
|
|
- name: Install vim packages
|
|
git:
|
|
repo: "{{ item }}"
|
|
dest: "{{ home }}/.vim/bundle/{{ item.split('/')[-1] }}"
|
|
force: true
|
|
become: true
|
|
become_user: "{{ user }}"
|
|
loop:
|
|
- https://github.com/junegunn/goyo.vim
|
|
- https://github.com/itchyny/lightline.vim
|
|
- https://github.com/scrooloose/nerdtree
|
|
- https://github.com/vim-scripts/peaksea
|
|
- https://github.com/terryma/vim-multiple-cursors
|
|
- https://github.com/jremmen/vim-ripgrep
|
|
- https://github.com/amix/vim-zenroom2
|