2021-06-07 08:40:01 +02:00
|
|
|
---
|
|
|
|
- name: install packages
|
|
|
|
become: yes
|
|
|
|
ansible.builtin.package:
|
|
|
|
name:
|
|
|
|
- vim
|
|
|
|
- ripgrep
|
|
|
|
state: present
|
|
|
|
|
|
|
|
- name: check if vundle is installed - folder
|
|
|
|
become: yes
|
|
|
|
stat:
|
2021-06-07 17:47:50 +02:00
|
|
|
path: "{{ vim_vundle_path }}"
|
2021-06-07 08:40:01 +02:00
|
|
|
register: folder_exists
|
|
|
|
|
|
|
|
- name: Ensure repository is cloned locally.
|
|
|
|
git:
|
2021-06-07 17:47:50 +02:00
|
|
|
repo: "{{ vim_vundle_repo_url }}"
|
|
|
|
dest: "{{ vim_vundle_path }}"
|
2021-06-07 08:40:01 +02:00
|
|
|
depth: 1
|
|
|
|
|
|
|
|
- name: set owner recursive for repo
|
|
|
|
file:
|
2021-06-07 17:47:50 +02:00
|
|
|
path: "{{ vim_homedir }}"
|
2021-06-07 08:40:01 +02:00
|
|
|
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
|
2021-06-07 17:47:50 +02:00
|
|
|
when: (folder_exists.stat.exists == False)
|