Simplify vim role
It might make sense to make the XDG_* stuff configurable in the future, but let's keep it simple for now.
This commit is contained in:
parent
ff1562506d
commit
dad459852c
3 changed files with 6 additions and 11 deletions
|
@ -12,7 +12,7 @@
|
||||||
path: "~/.{{ item }}/bash"
|
path: "~/.{{ item }}/bash"
|
||||||
state: directory
|
state: directory
|
||||||
loop:
|
loop:
|
||||||
- cache
|
- cache
|
||||||
- config
|
- config
|
||||||
|
|
||||||
- name: Deploy bash profile
|
- name: Deploy bash profile
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
---
|
|
||||||
xdg_config_home: "~/.config"
|
|
||||||
xdg_cache_home: "~/.cache"
|
|
||||||
xdg_data_home: "~/.local/share"
|
|
||||||
|
|
|
@ -4,14 +4,14 @@
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
state: directory
|
state: directory
|
||||||
loop:
|
loop:
|
||||||
- "{{ xdg_cache_home }}/vim"
|
- "~/.cache/vim"
|
||||||
- "{{ xdg_config_home }}/vim"
|
- "~/.config/vim"
|
||||||
- "{{ xdg_config_home }}/vim/autoload"
|
- "~/.config/vim/autoload"
|
||||||
|
|
||||||
- name: Deploy vim plug and vimrc
|
- name: Deploy vim plug and vimrc
|
||||||
file:
|
file:
|
||||||
src: "{{ role_path }}/files/{{ item }}"
|
src: "{{ role_path }}/files/{{ item }}"
|
||||||
dest: "{{ xdg_config_home }}/vim/{{ item }}"
|
dest: "~/.config/vim/{{ item }}"
|
||||||
state: link
|
state: link
|
||||||
force: yes
|
force: yes
|
||||||
loop:
|
loop:
|
||||||
|
@ -19,5 +19,5 @@
|
||||||
- vimrc
|
- vimrc
|
||||||
|
|
||||||
- name: Install configured vim plugins
|
- name: Install configured vim plugins
|
||||||
shell: vim -u "{{ xdg_config_home }}/vim/vimrc" +PlugInstall +qall
|
shell: vim -u "~/.config/vim/vimrc" +PlugInstall +qall
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue