Update tasks for glenux.vim
This commit is contained in:
parent
74ecddca17
commit
a27b3c0114
3 changed files with 39 additions and 21 deletions
|
@ -6,7 +6,8 @@
|
||||||
update=yes
|
update=yes
|
||||||
accept_hostkey=yes
|
accept_hostkey=yes
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{vim_user}}"
|
become_user: "{{item}}"
|
||||||
|
with_items: users
|
||||||
|
|
||||||
- name: Install Nerdtree plugin
|
- name: Install Nerdtree plugin
|
||||||
git:
|
git:
|
||||||
|
@ -15,7 +16,8 @@
|
||||||
update=yes
|
update=yes
|
||||||
accept_hostkey=yes
|
accept_hostkey=yes
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{vim_user}}"
|
become_user: "{{item}}"
|
||||||
|
with_items: users
|
||||||
|
|
||||||
|
|
||||||
- name: Install AutoComplPop plugin
|
- name: Install AutoComplPop plugin
|
||||||
|
@ -25,7 +27,8 @@
|
||||||
update=yes
|
update=yes
|
||||||
accept_hostkey=yes
|
accept_hostkey=yes
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{vim_user}}"
|
become_user: "{{item}}"
|
||||||
|
with_items: users
|
||||||
|
|
||||||
- name: Install vim-fugitive plugin
|
- name: Install vim-fugitive plugin
|
||||||
git:
|
git:
|
||||||
|
@ -34,7 +37,8 @@
|
||||||
update=yes
|
update=yes
|
||||||
accept_hostkey=yes
|
accept_hostkey=yes
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{vim_user}}"
|
become_user: "{{item}}"
|
||||||
|
with_items: users
|
||||||
|
|
||||||
#- name: Install CtrlP
|
#- name: Install CtrlP
|
||||||
# git:
|
# git:
|
||||||
|
@ -52,7 +56,8 @@
|
||||||
update=yes
|
update=yes
|
||||||
accept_hostkey=yes
|
accept_hostkey=yes
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{vim_user}}"
|
become_user: "{{item}}"
|
||||||
|
with_items: users
|
||||||
|
|
||||||
- name: Install syntastic plugin
|
- name: Install syntastic plugin
|
||||||
git:
|
git:
|
||||||
|
@ -61,7 +66,8 @@
|
||||||
update=yes
|
update=yes
|
||||||
accept_hostkey=yes
|
accept_hostkey=yes
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{vim_user}}"
|
become_user: "{{item}}"
|
||||||
|
with_items: users
|
||||||
|
|
||||||
|
|
||||||
- name: Install tabular plugin
|
- name: Install tabular plugin
|
||||||
|
@ -71,7 +77,8 @@
|
||||||
update=yes
|
update=yes
|
||||||
accept_hostkey=yes
|
accept_hostkey=yes
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{vim_user}}"
|
become_user: "{{item}}"
|
||||||
|
with_items: users
|
||||||
|
|
||||||
- name: Install vim-bundler plugin
|
- name: Install vim-bundler plugin
|
||||||
git:
|
git:
|
||||||
|
@ -80,7 +87,8 @@
|
||||||
update=yes
|
update=yes
|
||||||
accept_hostkey=yes
|
accept_hostkey=yes
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{vim_user}}"
|
become_user: "{{item}}"
|
||||||
|
with_items: users
|
||||||
|
|
||||||
- name: Install vim-javascript plugin
|
- name: Install vim-javascript plugin
|
||||||
git:
|
git:
|
||||||
|
@ -89,7 +97,8 @@
|
||||||
update=yes
|
update=yes
|
||||||
accept_hostkey=yes
|
accept_hostkey=yes
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{vim_user}}"
|
become_user: "{{item}}"
|
||||||
|
with_items: users
|
||||||
|
|
||||||
- name: Install vim-puppet plugin
|
- name: Install vim-puppet plugin
|
||||||
git:
|
git:
|
||||||
|
@ -98,7 +107,8 @@
|
||||||
update=yes
|
update=yes
|
||||||
accept_hostkey=yes
|
accept_hostkey=yes
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{vim_user}}"
|
become_user: "{{item}}"
|
||||||
|
with_items: users
|
||||||
|
|
||||||
- name: Install vim-rails plugin
|
- name: Install vim-rails plugin
|
||||||
git:
|
git:
|
||||||
|
@ -107,7 +117,8 @@
|
||||||
update=yes
|
update=yes
|
||||||
accept_hostkey=yes
|
accept_hostkey=yes
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{vim_user}}"
|
become_user: "{{item}}"
|
||||||
|
with_items: users
|
||||||
|
|
||||||
- name: Install vim-sensible plugin
|
- name: Install vim-sensible plugin
|
||||||
git:
|
git:
|
||||||
|
@ -116,7 +127,8 @@
|
||||||
update=yes
|
update=yes
|
||||||
accept_hostkey=yes
|
accept_hostkey=yes
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{vim_user}}"
|
become_user: "{{item}}"
|
||||||
|
with_items: users
|
||||||
|
|
||||||
- name: Install YouCompleteMe dependencies
|
- name: Install YouCompleteMe dependencies
|
||||||
apt:
|
apt:
|
||||||
|
@ -134,11 +146,12 @@
|
||||||
update=yes
|
update=yes
|
||||||
accept_hostkey=yes
|
accept_hostkey=yes
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{vim_user}}"
|
become_user: "{{item}}"
|
||||||
|
with_items: users
|
||||||
|
|
||||||
- name: Install YouCompleteMe library
|
- name: Install YouCompleteMe library
|
||||||
shell: ./install.sh
|
shell: cd ~/.vim/bundle/YouCompleteMe ; ./install.sh
|
||||||
chdir: ~/.vim/bundle/YouCompleteMe
|
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{vim_user}}"
|
become_user: "{{item}}"
|
||||||
|
with_items: users
|
||||||
|
|
||||||
|
|
|
@ -2,13 +2,15 @@
|
||||||
- name: Make directories for Pathogen
|
- name: Make directories for Pathogen
|
||||||
command: mkdir -p ~/.vim/autoload ~/.vim/bundle
|
command: mkdir -p ~/.vim/autoload ~/.vim/bundle
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{vim_user}}"
|
become_user: "{{item}}"
|
||||||
|
with_items: users
|
||||||
|
|
||||||
- name: Install Pathogen
|
- name: Install Pathogen
|
||||||
command: >
|
command: >
|
||||||
curl -LSso ~/.vim/autoload/pathogen.vim https://raw.github.com/tpope/vim-pathogen/master/autoload/pathogen.vim
|
curl -LSso ~/.vim/autoload/pathogen.vim https://raw.github.com/tpope/vim-pathogen/master/autoload/pathogen.vim
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{vim_user}}"
|
become_user: "{{item}}"
|
||||||
|
with_items: users
|
||||||
|
|
||||||
- lineinfile: >
|
- lineinfile: >
|
||||||
dest=~/.vimrc
|
dest=~/.vimrc
|
||||||
|
@ -16,4 +18,5 @@
|
||||||
line="execute pathogen#infect()"
|
line="execute pathogen#infect()"
|
||||||
insertbefore="{{vimrc_boundary_end_regexp}}"
|
insertbefore="{{vimrc_boundary_end_regexp}}"
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{vim_user}}"
|
become_user: "{{item}}"
|
||||||
|
with_items: users
|
||||||
|
|
|
@ -5,7 +5,8 @@
|
||||||
line="{{vimrc_boundary_begin}}"
|
line="{{vimrc_boundary_begin}}"
|
||||||
create=yes
|
create=yes
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{vim_user}}"
|
become_user: "{{item}}"
|
||||||
|
with_items: users
|
||||||
|
|
||||||
- lineinfile: >
|
- lineinfile: >
|
||||||
dest=~/.vimrc
|
dest=~/.vimrc
|
||||||
|
@ -13,4 +14,5 @@
|
||||||
insertafter="{{vimrc_boundary_begin_regexp}}"
|
insertafter="{{vimrc_boundary_begin_regexp}}"
|
||||||
line="{{vimrc_boundary_end}}"
|
line="{{vimrc_boundary_end}}"
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{vim_user}}"
|
become_user: "{{item}}"
|
||||||
|
with_items: users
|
||||||
|
|
Loading…
Reference in a new issue