ansible-role--vim/tasks/pathogen-plugins.yml

267 lines
5.5 KiB
YAML
Raw Normal View History

2015-10-22 21:07:53 +00:00
---
2015-12-27 17:48:53 +00:00
- file:
path: ~/.vim/ansible
state: directory
become: true
become_user: "{{item}}"
2016-04-12 22:01:57 +00:00
with_items: "{{vimrc_users}}"
2015-12-27 17:48:53 +00:00
#
# Solarized
#
2015-10-22 21:57:59 +00:00
- name: Install Solarized plugin
2015-10-22 21:07:53 +00:00
git: >
repo=git://github.com/altercation/vim-colors-solarized.git
dest=~/.vim/bundle/vim-colors-solarized
update=yes
accept_hostkey=yes
become: true
2015-11-08 18:18:17 +00:00
become_user: "{{item}}"
2016-04-12 22:01:57 +00:00
with_items: "{{vimrc_users}}"
2015-10-22 21:07:53 +00:00
2015-12-27 17:48:53 +00:00
#
# NERDTree
2015-12-27 17:48:53 +00:00
#
2015-10-22 21:57:59 +00:00
- name: Install Nerdtree plugin
2015-10-22 21:07:53 +00:00
git:
repo=https://github.com/scrooloose/nerdtree.git
dest=~/.vim/bundle/nerdtree
update=yes
accept_hostkey=yes
become: true
2015-11-08 18:18:17 +00:00
become_user: "{{item}}"
2016-04-12 22:01:57 +00:00
with_items: "{{vimrc_users}}"
2015-10-22 21:07:53 +00:00
2015-12-27 17:48:53 +00:00
- template:
src=templates/plugin.nerdtree.vim.j2
dest=~/.vim/ansible/plugin.nerdtree.vim
2015-12-27 17:48:53 +00:00
owner={{item}}
group={{item}}
mode=0644
become: true
become_user: "{{item}}"
2016-04-12 22:01:57 +00:00
with_items: "{{vimrc_users}}"
2015-12-27 17:48:53 +00:00
#
# AutoComplPop
#
2015-10-22 21:07:53 +00:00
2015-10-22 21:57:59 +00:00
- name: Install AutoComplPop plugin
2015-10-22 21:07:53 +00:00
git:
repo=https://github.com/vim-scripts/AutoComplPop.git
dest=~/.vim/bundle/AutoComplPop
update=yes
accept_hostkey=yes
become: true
2015-11-08 18:18:17 +00:00
become_user: "{{item}}"
2016-04-12 22:01:57 +00:00
with_items: "{{vimrc_users}}"
2015-10-22 21:07:53 +00:00
2015-12-27 17:48:53 +00:00
#
# Vim-fugitive
#
2015-10-22 21:57:59 +00:00
- name: Install vim-fugitive plugin
2015-10-22 21:07:53 +00:00
git:
repo=https://github.com/tpope/vim-fugitive.git
dest=~/.vim/bundle/vim-fugitive
update=yes
accept_hostkey=yes
become: true
2015-11-08 18:18:17 +00:00
become_user: "{{item}}"
2016-04-12 22:01:57 +00:00
with_items: "{{vimrc_users}}"
2015-10-22 21:07:53 +00:00
2015-12-27 17:48:53 +00:00
- template:
src=templates/plugin.fugitive.vim.j2
dest=~/.vim/ansible/plugin.fugitive.vim
2015-12-27 17:48:53 +00:00
owner={{item}}
group={{item}}
mode=0644
become: true
become_user: "{{item}}"
2016-04-12 22:01:57 +00:00
with_items: "{{vimrc_users}}"
2015-12-27 17:48:53 +00:00
2015-10-22 21:07:53 +00:00
#- name: Install CtrlP
# git:
# repo=https://github.com/kien/ctrlp.vim.git
# dest=~/.vim/bundle/ctrlp.vim
# update=yes
# accept_hostkey=yes
# become: true
# become_user: "{{vim_user}}"
#
# Rainbow parentheses:
#
2015-10-22 21:57:59 +00:00
- name: Install rainbow_parentheses plugin
2015-10-22 21:07:53 +00:00
git:
repo=https://github.com/kien/rainbow_parentheses.vim.git
dest=~/.vim/bundle/rainbow_parentheses
update=yes
accept_hostkey=yes
become: true
2015-11-08 18:18:17 +00:00
become_user: "{{item}}"
2016-04-12 22:01:57 +00:00
with_items: "{{vimrc_users}}"
2015-10-22 21:07:53 +00:00
- template:
src=templates/plugin.rainbow-parentheses.vim.j2
dest=~/.vim/ansible/plugin.rainbow-parentheses.vim
owner={{item}}
group={{item}}
mode=0644
become: true
become_user: "{{item}}"
2016-04-12 22:01:57 +00:00
with_items: "{{vimrc_users}}"
#
# Syntastic: ...
#
2015-10-22 21:57:59 +00:00
- name: Install syntastic plugin
2015-10-22 21:07:53 +00:00
git:
repo=https://github.com/scrooloose/syntastic.git
dest=~/.vim/bundle/syntastic
update=yes
accept_hostkey=yes
become: true
2015-11-08 18:18:17 +00:00
become_user: "{{item}}"
2016-04-12 22:01:57 +00:00
with_items: "{{vimrc_users}}"
2015-10-22 21:07:53 +00:00
2015-10-22 21:57:59 +00:00
- name: Install tabular plugin
2015-10-22 21:07:53 +00:00
git:
repo=https://github.com/godlygeek/tabular.git
dest=~/.vim/bundle/tabular
update=yes
accept_hostkey=yes
become: true
2015-11-08 18:18:17 +00:00
become_user: "{{item}}"
2016-04-12 22:01:57 +00:00
with_items: "{{vimrc_users}}"
2015-10-22 21:07:53 +00:00
2015-10-22 21:57:59 +00:00
- name: Install vim-bundler plugin
2015-10-22 21:07:53 +00:00
git:
repo=https://github.com/tpope/vim-bundler.git
dest=~/.vim/bundle/vim-bundler
update=yes
accept_hostkey=yes
become: true
2015-11-08 18:18:17 +00:00
become_user: "{{item}}"
2016-04-12 22:01:57 +00:00
with_items: "{{vimrc_users}}"
2015-10-22 21:07:53 +00:00
#
# Javascript
#
2015-10-22 21:57:59 +00:00
- name: Install vim-javascript plugin
2015-10-22 21:07:53 +00:00
git:
repo=https://github.com/pangloss/vim-javascript.git
dest=~/.vim/bundle/vim-javascript
update=yes
accept_hostkey=yes
become: true
2015-11-08 18:18:17 +00:00
become_user: "{{item}}"
2016-04-12 22:01:57 +00:00
with_items: "{{vimrc_users}}"
2015-10-22 21:07:53 +00:00
2015-10-22 21:57:59 +00:00
- name: Install vim-puppet plugin
2015-10-22 21:07:53 +00:00
git:
repo=https://github.com/rodjek/vim-puppet.git
dest=~/.vim/bundle/vim-puppet
update=yes
accept_hostkey=yes
become: true
2015-11-08 18:18:17 +00:00
become_user: "{{item}}"
2016-04-12 22:01:57 +00:00
with_items: "{{vimrc_users}}"
2015-10-22 21:07:53 +00:00
#
# Rails
#
2015-10-22 21:57:59 +00:00
- name: Install vim-rails plugin
2015-10-22 21:07:53 +00:00
git:
repo=https://github.com/tpope/vim-rails.git
dest=~/.vim/bundle/vim-rails
update=yes
accept_hostkey=yes
become: true
2015-11-08 18:18:17 +00:00
become_user: "{{item}}"
2016-04-12 22:01:57 +00:00
with_items: "{{vimrc_users}}"
2015-10-22 21:07:53 +00:00
- template:
src=templates/plugin.rails.vim.j2
dest=~/.vim/ansible/plugin.rails.vim
owner={{item}}
group={{item}}
mode=0644
become: true
become_user: "{{item}}"
2016-04-12 22:01:57 +00:00
with_items: "{{vimrc_users}}"
#
# vim-sensible: a universal set of defaults that (hopefully) everyone can agree on
#
2015-10-22 21:57:59 +00:00
- name: Install vim-sensible plugin
2015-10-22 21:07:53 +00:00
git:
repo=https://github.com/tpope/vim-sensible.git
dest=~/.vim/bundle/vim-sensible
update=yes
accept_hostkey=yes
become: true
2015-11-08 18:18:17 +00:00
become_user: "{{item}}"
2016-04-12 22:01:57 +00:00
with_items: "{{vimrc_users}}"
2015-10-22 21:07:53 +00:00
#
# vim-pencil: rethinking Vim as a tool for writing
#
- name: Install vim-pencil plugin
git:
repo=https://github.com/reedes/vim-pencil.git
dest=~/.vim/bundle/vim-pencil
update=yes
accept_hostkey=yes
become: true
become_user: "{{item}}"
2016-04-12 22:01:57 +00:00
with_items: "{{vimrc_users}}"
#
# YouCompleteMe
#
2015-12-27 17:48:53 +00:00
- name: Uninstall YouCompleteMe plugin
file:
path: ~/.vim/bundle/YouCompleteMe
state: absent
#recurse: yes
2015-10-22 21:57:59 +00:00
become: true
2015-11-08 18:18:17 +00:00
become_user: "{{item}}"
2016-04-12 22:01:57 +00:00
with_items: "{{vimrc_users}}"
2015-10-22 21:07:53 +00:00
2015-12-27 17:48:53 +00:00
# - name: Install YouCompleteMe dependencies
# apt:
# name="{{item}}"
# state=present
# with_items:
# - python-dev
# - build-essential
# - cmake
#
# - name: Fetch YouCompleteMe plugin
# register: youcompleteme_git
# git:
# repo=https://github.com/Valloric/YouCompleteMe.git
# dest=~/.vim/bundle/YouCompleteMe
# update=yes
# accept_hostkey=yes
# become: true
# become_user: "{{item}}"
# with_items: vimrc_users
#
# - name: Build YouCompleteMe plugin
# shell: cd ~/.vim/bundle/YouCompleteMe ; ./install.sh
# become: true
# become_user: "{{item}}"
# with_items: vimrc_users
# when: youcompleteme_git.changed