Update tasks for glenux.vim

This commit is contained in:
Glenn Y. Rolland 2015-11-08 19:18:17 +01:00
parent 74ecddca17
commit a27b3c0114
3 changed files with 39 additions and 21 deletions

View file

@ -6,7 +6,8 @@
update=yes
accept_hostkey=yes
become: true
become_user: "{{vim_user}}"
become_user: "{{item}}"
with_items: users
- name: Install Nerdtree plugin
git:
@ -15,7 +16,8 @@
update=yes
accept_hostkey=yes
become: true
become_user: "{{vim_user}}"
become_user: "{{item}}"
with_items: users
- name: Install AutoComplPop plugin
@ -25,7 +27,8 @@
update=yes
accept_hostkey=yes
become: true
become_user: "{{vim_user}}"
become_user: "{{item}}"
with_items: users
- name: Install vim-fugitive plugin
git:
@ -34,7 +37,8 @@
update=yes
accept_hostkey=yes
become: true
become_user: "{{vim_user}}"
become_user: "{{item}}"
with_items: users
#- name: Install CtrlP
# git:
@ -52,7 +56,8 @@
update=yes
accept_hostkey=yes
become: true
become_user: "{{vim_user}}"
become_user: "{{item}}"
with_items: users
- name: Install syntastic plugin
git:
@ -61,7 +66,8 @@
update=yes
accept_hostkey=yes
become: true
become_user: "{{vim_user}}"
become_user: "{{item}}"
with_items: users
- name: Install tabular plugin
@ -71,7 +77,8 @@
update=yes
accept_hostkey=yes
become: true
become_user: "{{vim_user}}"
become_user: "{{item}}"
with_items: users
- name: Install vim-bundler plugin
git:
@ -80,7 +87,8 @@
update=yes
accept_hostkey=yes
become: true
become_user: "{{vim_user}}"
become_user: "{{item}}"
with_items: users
- name: Install vim-javascript plugin
git:
@ -89,7 +97,8 @@
update=yes
accept_hostkey=yes
become: true
become_user: "{{vim_user}}"
become_user: "{{item}}"
with_items: users
- name: Install vim-puppet plugin
git:
@ -98,7 +107,8 @@
update=yes
accept_hostkey=yes
become: true
become_user: "{{vim_user}}"
become_user: "{{item}}"
with_items: users
- name: Install vim-rails plugin
git:
@ -107,7 +117,8 @@
update=yes
accept_hostkey=yes
become: true
become_user: "{{vim_user}}"
become_user: "{{item}}"
with_items: users
- name: Install vim-sensible plugin
git:
@ -116,7 +127,8 @@
update=yes
accept_hostkey=yes
become: true
become_user: "{{vim_user}}"
become_user: "{{item}}"
with_items: users
- name: Install YouCompleteMe dependencies
apt:
@ -134,11 +146,12 @@
update=yes
accept_hostkey=yes
become: true
become_user: "{{vim_user}}"
become_user: "{{item}}"
with_items: users
- name: Install YouCompleteMe library
shell: ./install.sh
chdir: ~/.vim/bundle/YouCompleteMe
shell: cd ~/.vim/bundle/YouCompleteMe ; ./install.sh
become: true
become_user: "{{vim_user}}"
become_user: "{{item}}"
with_items: users

View file

@ -2,13 +2,15 @@
- name: Make directories for Pathogen
command: mkdir -p ~/.vim/autoload ~/.vim/bundle
become: true
become_user: "{{vim_user}}"
become_user: "{{item}}"
with_items: users
- name: Install Pathogen
command: >
curl -LSso ~/.vim/autoload/pathogen.vim https://raw.github.com/tpope/vim-pathogen/master/autoload/pathogen.vim
become: true
become_user: "{{vim_user}}"
become_user: "{{item}}"
with_items: users
- lineinfile: >
dest=~/.vimrc
@ -16,4 +18,5 @@
line="execute pathogen#infect()"
insertbefore="{{vimrc_boundary_end_regexp}}"
become: true
become_user: "{{vim_user}}"
become_user: "{{item}}"
with_items: users

View file

@ -5,7 +5,8 @@
line="{{vimrc_boundary_begin}}"
create=yes
become: true
become_user: "{{vim_user}}"
become_user: "{{item}}"
with_items: users
- lineinfile: >
dest=~/.vimrc
@ -13,4 +14,5 @@
insertafter="{{vimrc_boundary_begin_regexp}}"
line="{{vimrc_boundary_end}}"
become: true
become_user: "{{vim_user}}"
become_user: "{{item}}"
with_items: users