fix vimrc path

Signed-off-by: Frank Villaro-Dixon <frank@villaro-dixon.eu>
This commit is contained in:
Frank Villaro-Dixon 2024-11-03 15:37:23 +01:00
parent aa0bea9b70
commit 8104791449

View file

@ -1,7 +1,14 @@
- name: Check /etc/vim/vimrc path
stat:
path: /etc/vim/vimrc
register: vimrc_full_path
- name: Copy simple vimrc
copy:
src: files/vimrc
dest: /etc/vim/vimrc
dest: "{{ vimrc_full_path.stat.exists | ternary ('/etc/vim/vimrc', '/etc/vimrc') }}"
owner: root
group: root
mode: 0644