From 97f32d7b8b46bb2c1a9c2efb40bec7fdcf4e3843 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Tue, 8 Oct 2024 17:45:08 +0200 Subject: [PATCH] ff --- roles/mgrote_user_setup/handlers/main.yml | 4 +--- roles/mgrote_user_setup/tasks/main.yml | 13 +++++++++++++ 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/roles/mgrote_user_setup/handlers/main.yml b/roles/mgrote_user_setup/handlers/main.yml index 5a86c87e..2ccc4475 100644 --- a/roles/mgrote_user_setup/handlers/main.yml +++ b/roles/mgrote_user_setup/handlers/main.yml @@ -2,10 +2,8 @@ - name: Vundle - PluginInstall # noqa no-changed-when risky-shell-pipe become: true become_user: "{{ item.user }}" - ansible.builtin.shell: "yes | vim -E -c PluginInstall -c qall" + ansible.builtin.shell: "yes | vim -c PluginInstall -c qall" args: chdir: "{{ item.home }}" loop: "{{ dotfiles }}" - register: plugin - changed_when: "plugin.rc == 1" ... diff --git a/roles/mgrote_user_setup/tasks/main.yml b/roles/mgrote_user_setup/tasks/main.yml index 6df170a8..b1dc3dfa 100644 --- a/roles/mgrote_user_setup/tasks/main.yml +++ b/roles/mgrote_user_setup/tasks/main.yml @@ -68,6 +68,19 @@ group: "{{ item.user }}" 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: