32 lines
1.0 KiB
YAML
32 lines
1.0 KiB
YAML
- name: Link vimrc
|
|
file:
|
|
#src: "/skel/{{ item }}"
|
|
src: "{{ item.src }}"
|
|
dest: "{{ local_path }}/{{ item.path }}"
|
|
state: link
|
|
become: no
|
|
with_filetree: "/skel/"
|
|
when: item.state == 'file'
|
|
- name: Create vim directories
|
|
file:
|
|
path: "{{ local_path }}/{{ item.path }}"
|
|
state: directory
|
|
with_filetree: "/skel.vim/"
|
|
when: item.state == 'directory'
|
|
- name: Install plug
|
|
get_url:
|
|
url: "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim"
|
|
dest: "{{ local_path }}/.vim/autoload/plug.vim"
|
|
- name: Clean plugins
|
|
shell: "vim -E -s -c 'source {{ local_path }}/.vimrc' -c PlugClean! -c qa"
|
|
# shell: "vim +'silent! PlugClean!' +q!"
|
|
ignore_errors: yes
|
|
- name: Install plugins
|
|
shell: "vim -E -s -c 'source {{ local_path }}/.vimrc' -c PlugInstall! -c qa"
|
|
# shell: "vim +'silent! PlugInstall!' +q!"
|
|
ignore_errors: yes
|
|
- name: Update plugins
|
|
shell: "vim -E -s -c 'source {{ local_path }}/.vimrc' -c PlugUpdate! -c qa"
|
|
# shell: "vim +'silent! PlugUpdate!' +q!"
|
|
ignore_errors: yes
|