homeserver/roles/mgrote.vim/tasks/main.yml

35 lines
757 B
YAML
Raw Normal View History

---
- name: install packages
become: yes
ansible.builtin.package:
name:
- vim
- ripgrep
state: present
- name: check if vundle is installed - folder
become: yes
stat:
path: "{{ vim_vundle_path }}"
register: folder_exists
- name: Ensure repository is cloned locally.
git:
repo: "{{ vim_vundle_repo_url }}"
dest: "{{ vim_vundle_path }}"
depth: 1
- name: set owner recursive for repo
file:
path: "{{ vim_homedir }}"
owner: mg
group: mg
recurse: yes
- name: Vundle - PluginInstall
ansible.builtin.shell: yes | vim -c PluginInstall -c qall
args:
chdir: /home/mg
become_user: mg
when: (folder_exists.stat.exists == False)