fix vimrc path
Signed-off-by: Frank Villaro-Dixon <frank@villaro-dixon.eu>
This commit is contained in:
parent
aa0bea9b70
commit
8104791449
1 changed files with 9 additions and 2 deletions
|
@ -1,7 +1,14 @@
|
||||||
|
- name: Check /etc/vim/vimrc path
|
||||||
|
stat:
|
||||||
|
path: /etc/vim/vimrc
|
||||||
|
register: vimrc_full_path
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
- name: Copy simple vimrc
|
- name: Copy simple vimrc
|
||||||
copy:
|
copy:
|
||||||
src: files/vimrc
|
src: files/vimrc
|
||||||
dest: /etc/vim/vimrc
|
dest: "{{ vimrc_full_path.stat.exists | ternary ('/etc/vim/vimrc', '/etc/vimrc') }}"
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
Loading…
Reference in a new issue