Use ansible commands instead of shell.
This commit is contained in:
parent
a1c9bb829f
commit
d9d8b331ef
1 changed files with 13 additions and 5 deletions
|
@ -1,13 +1,20 @@
|
||||||
---
|
---
|
||||||
- name: Make directories for Pathogen
|
- name: Make directories for Pathogen
|
||||||
command: mkdir -p ~/.vim/autoload ~/.vim/bundle
|
file: >
|
||||||
|
"path={{item[0]}}"
|
||||||
|
state=directory
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{item}}"
|
become_user: "{{item[1]}}"
|
||||||
with_items: users
|
with_nested:
|
||||||
|
- [ '~/.vim/autoload', '~/.vim/bundle' ]
|
||||||
|
- users
|
||||||
|
|
||||||
|
|
||||||
- name: Install Pathogen
|
- name: Install Pathogen
|
||||||
command: >
|
get_url: >
|
||||||
curl -LSso ~/.vim/autoload/pathogen.vim https://raw.github.com/tpope/vim-pathogen/master/autoload/pathogen.vim
|
url=https://raw.github.com/tpope/vim-pathogen/master/autoload/pathogen.vim
|
||||||
|
dest=~/.vim/autoload/pathogen.vim
|
||||||
|
validate_certs=no
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{item}}"
|
become_user: "{{item}}"
|
||||||
with_items: users
|
with_items: users
|
||||||
|
@ -20,3 +27,4 @@
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{item}}"
|
become_user: "{{item}}"
|
||||||
with_items: users
|
with_items: users
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue