Rename users variable to vimrc_users.

This commit is contained in:
Glenn Y. Rolland 2015-11-27 17:43:18 +01:00
parent a1c9bb829f
commit 6ba0163d3a
4 changed files with 26 additions and 19 deletions

View file

@ -5,3 +5,10 @@ vimrc_boundary_begin: "\\\" BEGIN {{vimrc_boundary}} -- DO NOT MODIFY"
vimrc_boundary_end: "\\\" END {{vimrc_boundary}}"
vimrc_boundary_begin_regexp: "^{{vimrc_boundary_begin}}"
vimrc_boundary_end_regexp: "^{{vimrc_boundary_end}}"
vimrc_users: []
# FIXME: find a solution for system vimrc
vimrc_sys:
- "syntax on"

View file

@ -7,7 +7,7 @@
accept_hostkey=yes
become: true
become_user: "{{item}}"
with_items: users
with_items: vimrc_users
- name: Install Nerdtree plugin
git:
@ -17,7 +17,7 @@
accept_hostkey=yes
become: true
become_user: "{{item}}"
with_items: users
with_items: vimrc_users
- name: Install AutoComplPop plugin
@ -28,7 +28,7 @@
accept_hostkey=yes
become: true
become_user: "{{item}}"
with_items: users
with_items: vimrc_users
- name: Install vim-fugitive plugin
git:
@ -38,7 +38,7 @@
accept_hostkey=yes
become: true
become_user: "{{item}}"
with_items: users
with_items: vimrc_users
#- name: Install CtrlP
# git:
@ -57,7 +57,7 @@
accept_hostkey=yes
become: true
become_user: "{{item}}"
with_items: users
with_items: vimrc_users
- name: Install syntastic plugin
git:
@ -67,7 +67,7 @@
accept_hostkey=yes
become: true
become_user: "{{item}}"
with_items: users
with_items: vimrc_users
- name: Install tabular plugin
@ -78,7 +78,7 @@
accept_hostkey=yes
become: true
become_user: "{{item}}"
with_items: users
with_items: vimrc_users
- name: Install vim-bundler plugin
git:
@ -88,7 +88,7 @@
accept_hostkey=yes
become: true
become_user: "{{item}}"
with_items: users
with_items: vimrc_users
- name: Install vim-javascript plugin
git:
@ -98,7 +98,7 @@
accept_hostkey=yes
become: true
become_user: "{{item}}"
with_items: users
with_items: vimrc_users
- name: Install vim-puppet plugin
git:
@ -108,7 +108,7 @@
accept_hostkey=yes
become: true
become_user: "{{item}}"
with_items: users
with_items: vimrc_users
- name: Install vim-rails plugin
git:
@ -118,7 +118,7 @@
accept_hostkey=yes
become: true
become_user: "{{item}}"
with_items: users
with_items: vimrc_users
- name: Install vim-sensible plugin
git:
@ -128,7 +128,7 @@
accept_hostkey=yes
become: true
become_user: "{{item}}"
with_items: users
with_items: vimrc_users
- name: Install YouCompleteMe dependencies
apt:
@ -148,12 +148,12 @@
accept_hostkey=yes
become: true
become_user: "{{item}}"
with_items: users
with_items: vimrc_users
- name: Build YouCompleteMe plugin
shell: cd ~/.vim/bundle/YouCompleteMe ; ./install.sh
become: true
become_user: "{{item}}"
with_items: users
with_items: vimrc_users
when: youcompleteme_git.changed

View file

@ -3,14 +3,14 @@
command: mkdir -p ~/.vim/autoload ~/.vim/bundle
become: true
become_user: "{{item}}"
with_items: users
with_items: vimrc_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: "{{item}}"
with_items: users
with_items: vimrc_users
- lineinfile: >
dest=~/.vimrc
@ -19,4 +19,4 @@
insertbefore="{{vimrc_boundary_end_regexp}}"
become: true
become_user: "{{item}}"
with_items: users
with_items: vimrc_users

View file

@ -6,7 +6,7 @@
create=yes
become: true
become_user: "{{item}}"
with_items: users
with_items: vimrc_users
- lineinfile: >
dest=~/.vimrc
@ -15,4 +15,4 @@
line="{{vimrc_boundary_end}}"
become: true
become_user: "{{item}}"
with_items: users
with_items: vimrc_users