2015-10-22 21:07:53 +00:00
|
|
|
---
|
|
|
|
- name: Make directories for Pathogen
|
2015-11-17 13:03:00 +00:00
|
|
|
file: >
|
|
|
|
"path={{item[0]}}"
|
|
|
|
state=directory
|
2015-10-22 21:07:53 +00:00
|
|
|
become: true
|
2015-11-17 13:03:00 +00:00
|
|
|
become_user: "{{item[1]}}"
|
|
|
|
with_nested:
|
|
|
|
- [ '~/.vim/autoload', '~/.vim/bundle' ]
|
|
|
|
- users
|
|
|
|
|
2015-10-22 21:07:53 +00:00
|
|
|
|
|
|
|
- name: Install Pathogen
|
2015-11-17 13:03:00 +00:00
|
|
|
get_url: >
|
|
|
|
url=https://raw.github.com/tpope/vim-pathogen/master/autoload/pathogen.vim
|
|
|
|
dest=~/.vim/autoload/pathogen.vim
|
|
|
|
validate_certs=no
|
2015-10-22 21:07:53 +00:00
|
|
|
become: true
|
2015-11-08 18:18:17 +00:00
|
|
|
become_user: "{{item}}"
|
|
|
|
with_items: users
|
2015-10-22 21:07:53 +00:00
|
|
|
|
|
|
|
- lineinfile: >
|
|
|
|
dest=~/.vimrc
|
|
|
|
regexp=^execute.pathogen.infect
|
|
|
|
line="execute pathogen#infect()"
|
|
|
|
insertbefore="{{vimrc_boundary_end_regexp}}"
|
|
|
|
become: true
|
2015-11-08 18:18:17 +00:00
|
|
|
become_user: "{{item}}"
|
|
|
|
with_items: users
|
2015-11-17 13:03:00 +00:00
|
|
|
|