fix vim vundle plugin install #204
2 changed files with 14 additions and 3 deletions
|
@ -2,10 +2,8 @@
|
||||||
- name: Vundle - PluginInstall # noqa no-changed-when risky-shell-pipe
|
- name: Vundle - PluginInstall # noqa no-changed-when risky-shell-pipe
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{ item.user }}"
|
become_user: "{{ item.user }}"
|
||||||
ansible.builtin.shell: "yes | vim -E -c PluginInstall -c qall"
|
ansible.builtin.shell: "yes | vim -c PluginInstall -c qall"
|
||||||
args:
|
args:
|
||||||
chdir: "{{ item.home }}"
|
chdir: "{{ item.home }}"
|
||||||
loop: "{{ dotfiles }}"
|
loop: "{{ dotfiles }}"
|
||||||
register: plugin
|
|
||||||
changed_when: "plugin.rc == 1"
|
|
||||||
...
|
...
|
||||||
|
|
|
@ -68,6 +68,19 @@
|
||||||
group: "{{ item.user }}"
|
group: "{{ item.user }}"
|
||||||
loop: "{{ dotfiles }}"
|
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
|
- name: add source .bash_extra to user .bashrc
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
|
|
Loading…
Reference in a new issue