2021-06-07 08:40:01 +02:00
|
|
|
---
|
|
|
|
- name: install packages
|
|
|
|
become: yes
|
|
|
|
ansible.builtin.package:
|
|
|
|
name:
|
2021-06-24 07:28:32 +02:00
|
|
|
- vim
|
|
|
|
- ripgrep
|
2021-06-07 08:40:01 +02:00
|
|
|
state: present
|
|
|
|
|
2021-06-24 07:28:32 +02:00
|
|
|
- name: check if vundle is installed - folder
|
2021-06-07 08:40:01 +02:00
|
|
|
become: yes
|
2021-06-24 07:28:32 +02:00
|
|
|
stat:
|
|
|
|
path: "{{ vim_vundle_path }}"
|
|
|
|
register: folder_exists
|
2021-06-07 08:40:01 +02:00
|
|
|
|
2022-04-14 13:23:39 +02:00
|
|
|
|
|
|
|
- name: set safe directory
|
|
|
|
become: true
|
|
|
|
ansible.builtin.shell:
|
|
|
|
cmd: git config --global --add safe.directory "{{ vim_vundle_path }}"
|
|
|
|
changed_when: false
|
|
|
|
|
2021-06-24 07:28:32 +02:00
|
|
|
- name: Ensure repository is cloned locally.
|
|
|
|
git:
|
|
|
|
repo: "{{ vim_vundle_repo_url }}"
|
|
|
|
dest: "{{ vim_vundle_path }}"
|
|
|
|
depth: 1
|
|
|
|
register: repo_cloned
|
|
|
|
|
|
|
|
- name: set owner recursive for repo
|
|
|
|
file:
|
|
|
|
path: "{{ vim_homedir }}"
|
|
|
|
owner: mg
|
|
|
|
group: mg
|
|
|
|
recurse: yes
|
|
|
|
when: repo_cloned.changed == true
|
|
|
|
|
2021-12-28 11:27:06 +01:00
|
|
|
# - name: Vundle - PluginInstall
|
|
|
|
# ansible.builtin.shell: yes | vim -c PluginInstall -c qall
|
|
|
|
# args:
|
|
|
|
# chdir: /home/mg
|
|
|
|
# when:
|
|
|
|
# - (folder_exists.stat.exists == False) and ("ansible_facts['distribution'] == 'Ubuntu'")
|
|
|
|
# become: yes
|
|
|
|
# become_user: mg
|