fix vim vundle plugin install (#204)
Reviewed-on: https://git.mgrote.net///mg/homeserver/pulls/204 Co-authored-by: Michael Grote <michael.grote@posteo.de> Co-committed-by: Michael Grote <michael.grote@posteo.de>
This commit is contained in:
parent
533cb1101c
commit
03ddd20412
3 changed files with 25 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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 }}"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue