homeserver/roles/mgrote.vim/tasks/main.yml
mg 0df8312cfc laptop eingebaut (#105)
inv

vm-test2

bugfix reboot

invfentory

vim

polybar gruppe

polybar

i3

vim

extra programme

eigenes playbook

inventar

Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: mg/ansible#105
Co-Authored-By: mg <mg@noreply.git.mgrote.net>
Co-Committed-By: mg <mg@noreply.git.mgrote.net>
2021-06-07 08:40:01 +02:00

34 lines
786 B
YAML

---
- name: install packages
become: yes
ansible.builtin.package:
name:
- vim
- ripgrep
state: present
- name: check if vundle is installed - folder
become: yes
stat:
path: "/home/mg/.vim/bundle/Vundle.vim"
register: folder_exists
- name: Ensure repository is cloned locally.
git:
repo: https://github.com/VundleVim/Vundle.vim.git
dest: /home/mg/.vim/bundle/Vundle.vim
depth: 1
- name: set owner recursive for repo
file:
path: /home/mg/.vim
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)