ansible-common/tasks/vim.yml

15 lines
289 B
YAML
Raw Permalink Normal View History

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