Rename users variable to vimrc_users.
This commit is contained in:
parent
a1c9bb829f
commit
6ba0163d3a
4 changed files with 26 additions and 19 deletions
|
@ -5,3 +5,10 @@ vimrc_boundary_begin: "\\\" BEGIN {{vimrc_boundary}} -- DO NOT MODIFY"
|
||||||
vimrc_boundary_end: "\\\" END {{vimrc_boundary}}"
|
vimrc_boundary_end: "\\\" END {{vimrc_boundary}}"
|
||||||
vimrc_boundary_begin_regexp: "^{{vimrc_boundary_begin}}"
|
vimrc_boundary_begin_regexp: "^{{vimrc_boundary_begin}}"
|
||||||
vimrc_boundary_end_regexp: "^{{vimrc_boundary_end}}"
|
vimrc_boundary_end_regexp: "^{{vimrc_boundary_end}}"
|
||||||
|
|
||||||
|
vimrc_users: []
|
||||||
|
|
||||||
|
# FIXME: find a solution for system vimrc
|
||||||
|
vimrc_sys:
|
||||||
|
- "syntax on"
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
accept_hostkey=yes
|
accept_hostkey=yes
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{item}}"
|
become_user: "{{item}}"
|
||||||
with_items: users
|
with_items: vimrc_users
|
||||||
|
|
||||||
- name: Install Nerdtree plugin
|
- name: Install Nerdtree plugin
|
||||||
git:
|
git:
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
accept_hostkey=yes
|
accept_hostkey=yes
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{item}}"
|
become_user: "{{item}}"
|
||||||
with_items: users
|
with_items: vimrc_users
|
||||||
|
|
||||||
|
|
||||||
- name: Install AutoComplPop plugin
|
- name: Install AutoComplPop plugin
|
||||||
|
@ -28,7 +28,7 @@
|
||||||
accept_hostkey=yes
|
accept_hostkey=yes
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{item}}"
|
become_user: "{{item}}"
|
||||||
with_items: users
|
with_items: vimrc_users
|
||||||
|
|
||||||
- name: Install vim-fugitive plugin
|
- name: Install vim-fugitive plugin
|
||||||
git:
|
git:
|
||||||
|
@ -38,7 +38,7 @@
|
||||||
accept_hostkey=yes
|
accept_hostkey=yes
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{item}}"
|
become_user: "{{item}}"
|
||||||
with_items: users
|
with_items: vimrc_users
|
||||||
|
|
||||||
#- name: Install CtrlP
|
#- name: Install CtrlP
|
||||||
# git:
|
# git:
|
||||||
|
@ -57,7 +57,7 @@
|
||||||
accept_hostkey=yes
|
accept_hostkey=yes
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{item}}"
|
become_user: "{{item}}"
|
||||||
with_items: users
|
with_items: vimrc_users
|
||||||
|
|
||||||
- name: Install syntastic plugin
|
- name: Install syntastic plugin
|
||||||
git:
|
git:
|
||||||
|
@ -67,7 +67,7 @@
|
||||||
accept_hostkey=yes
|
accept_hostkey=yes
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{item}}"
|
become_user: "{{item}}"
|
||||||
with_items: users
|
with_items: vimrc_users
|
||||||
|
|
||||||
|
|
||||||
- name: Install tabular plugin
|
- name: Install tabular plugin
|
||||||
|
@ -78,7 +78,7 @@
|
||||||
accept_hostkey=yes
|
accept_hostkey=yes
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{item}}"
|
become_user: "{{item}}"
|
||||||
with_items: users
|
with_items: vimrc_users
|
||||||
|
|
||||||
- name: Install vim-bundler plugin
|
- name: Install vim-bundler plugin
|
||||||
git:
|
git:
|
||||||
|
@ -88,7 +88,7 @@
|
||||||
accept_hostkey=yes
|
accept_hostkey=yes
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{item}}"
|
become_user: "{{item}}"
|
||||||
with_items: users
|
with_items: vimrc_users
|
||||||
|
|
||||||
- name: Install vim-javascript plugin
|
- name: Install vim-javascript plugin
|
||||||
git:
|
git:
|
||||||
|
@ -98,7 +98,7 @@
|
||||||
accept_hostkey=yes
|
accept_hostkey=yes
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{item}}"
|
become_user: "{{item}}"
|
||||||
with_items: users
|
with_items: vimrc_users
|
||||||
|
|
||||||
- name: Install vim-puppet plugin
|
- name: Install vim-puppet plugin
|
||||||
git:
|
git:
|
||||||
|
@ -108,7 +108,7 @@
|
||||||
accept_hostkey=yes
|
accept_hostkey=yes
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{item}}"
|
become_user: "{{item}}"
|
||||||
with_items: users
|
with_items: vimrc_users
|
||||||
|
|
||||||
- name: Install vim-rails plugin
|
- name: Install vim-rails plugin
|
||||||
git:
|
git:
|
||||||
|
@ -118,7 +118,7 @@
|
||||||
accept_hostkey=yes
|
accept_hostkey=yes
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{item}}"
|
become_user: "{{item}}"
|
||||||
with_items: users
|
with_items: vimrc_users
|
||||||
|
|
||||||
- name: Install vim-sensible plugin
|
- name: Install vim-sensible plugin
|
||||||
git:
|
git:
|
||||||
|
@ -128,7 +128,7 @@
|
||||||
accept_hostkey=yes
|
accept_hostkey=yes
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{item}}"
|
become_user: "{{item}}"
|
||||||
with_items: users
|
with_items: vimrc_users
|
||||||
|
|
||||||
- name: Install YouCompleteMe dependencies
|
- name: Install YouCompleteMe dependencies
|
||||||
apt:
|
apt:
|
||||||
|
@ -148,12 +148,12 @@
|
||||||
accept_hostkey=yes
|
accept_hostkey=yes
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{item}}"
|
become_user: "{{item}}"
|
||||||
with_items: users
|
with_items: vimrc_users
|
||||||
|
|
||||||
- name: Build YouCompleteMe plugin
|
- name: Build YouCompleteMe plugin
|
||||||
shell: cd ~/.vim/bundle/YouCompleteMe ; ./install.sh
|
shell: cd ~/.vim/bundle/YouCompleteMe ; ./install.sh
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{item}}"
|
become_user: "{{item}}"
|
||||||
with_items: users
|
with_items: vimrc_users
|
||||||
when: youcompleteme_git.changed
|
when: youcompleteme_git.changed
|
||||||
|
|
||||||
|
|
|
@ -3,14 +3,14 @@
|
||||||
command: mkdir -p ~/.vim/autoload ~/.vim/bundle
|
command: mkdir -p ~/.vim/autoload ~/.vim/bundle
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{item}}"
|
become_user: "{{item}}"
|
||||||
with_items: users
|
with_items: vimrc_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: "{{item}}"
|
become_user: "{{item}}"
|
||||||
with_items: users
|
with_items: vimrc_users
|
||||||
|
|
||||||
- lineinfile: >
|
- lineinfile: >
|
||||||
dest=~/.vimrc
|
dest=~/.vimrc
|
||||||
|
@ -19,4 +19,4 @@
|
||||||
insertbefore="{{vimrc_boundary_end_regexp}}"
|
insertbefore="{{vimrc_boundary_end_regexp}}"
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{item}}"
|
become_user: "{{item}}"
|
||||||
with_items: users
|
with_items: vimrc_users
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
create=yes
|
create=yes
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{item}}"
|
become_user: "{{item}}"
|
||||||
with_items: users
|
with_items: vimrc_users
|
||||||
|
|
||||||
- lineinfile: >
|
- lineinfile: >
|
||||||
dest=~/.vimrc
|
dest=~/.vimrc
|
||||||
|
@ -15,4 +15,4 @@
|
||||||
line="{{vimrc_boundary_end}}"
|
line="{{vimrc_boundary_end}}"
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{item}}"
|
become_user: "{{item}}"
|
||||||
with_items: users
|
with_items: vimrc_users
|
||||||
|
|
Loading…
Reference in a new issue