fix vim vundle plugin install #204

Merged
mg merged 12 commits from vim into master 2024-10-08 17:52:39 +02:00
3 changed files with 25 additions and 3 deletions

View file

@ -8,5 +8,5 @@ dotfiles:
ansible_forgejo_user: svc_ansible
ansible_forgejo_user_pass: "{{ lookup('viczem.keepass.keepass', 'user_setup_forgejo_user_pass', 'password') }}" # user ist dem Repo als "Collaborator" + "RO" hinzugefügt worden
dotfiles_vim_vundle_repo_url: "https://{{ ansible_forgejo_user | urlencode }}:{{ ansible_forgejo_user_pass | urlencode }}@git.mgrote.net/mirrors/Vundle.vim.git"
dotfiles_vim_vundle_repo_url: "https://github.com/VundleVim/Vundle.vim.git"
dotfiles_repo_url: https://git.mgrote.net/mg/dotfiles

View file

@ -2,7 +2,7 @@
- name: Vundle - PluginInstall # noqa no-changed-when risky-shell-pipe
become: true
become_user: "{{ item.user }}"
ansible.builtin.shell: yes yes yes | vim -c PluginInstall -c qall
ansible.builtin.shell: "yes | vim -c PluginInstall -c qall"
args:
chdir: "{{ item.home }}"
loop: "{{ dotfiles }}"

View file

@ -68,6 +68,28 @@
group: "{{ item.user }}"
loop: "{{ dotfiles }}"
- name: Ensure needed vim dirs exist
become: true
ansible.builtin.file:
state: directory
path: "{{ item.home }}/.vim/"
owner: "{{ item.user }}"
group: "{{ item.user }}"
mode: '0755'
loop: "{{ dotfiles }}"
- name: Link vim spelldir
become: true
ansible.builtin.file:
src: "{{ item.home }}/dotfiles/vim/spell/"
dest: "{{ item.home }}/.vim/spell"
state: link
follow: false # https://github.com/ansible/ansible/issues/73143
force: true
owner: "{{ item.user }}"
group: "{{ item.user }}"
loop: "{{ dotfiles }}"
- name: add source .bash_extra to user .bashrc
become: true
ansible.builtin.lineinfile:
@ -76,7 +98,7 @@
state: present
loop: "{{ dotfiles }}"
- name: Ensure needed dirs exist
- name: Ensure needed vundle dirs exist
become: true
ansible.builtin.file:
state: directory