From b2c6782e4154ee544b2b03458dfde133f02b1a9d Mon Sep 17 00:00:00 2001 From: Matt Reeves Date: Sat, 21 Sep 2024 20:10:38 -0400 Subject: [PATCH] adjust zsh playbook --- ansible/playbooks/zsh.yml | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/ansible/playbooks/zsh.yml b/ansible/playbooks/zsh.yml index ec13c1f..6243bec 100644 --- a/ansible/playbooks/zsh.yml +++ b/ansible/playbooks/zsh.yml @@ -49,34 +49,41 @@ shell: | RUNZSH=no sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" environment: - HOME: "/home/mafyuh" + HOME: "/home/{{ user }}" args: - chdir: "/home/mafyuh" - creates: "/home/mafyuh/.oh-my-zsh" + chdir: "/home/{{ user }}" + creates: "/home/{{ user }}/.oh-my-zsh" + + - name: Ensure custom plugins directory exists + file: + path: "{{ zsh_custom }}/plugins" + state: directory + owner: "{{ user }}" + group: "{{ user }}" - name: Clone zsh-syntax-highlighting plugin git: repo: https://github.com/zsh-users/zsh-syntax-highlighting.git dest: "{{ zsh_custom }}/plugins/zsh-syntax-highlighting" - update: no + update: yes - name: Clone zsh-autosuggestions plugin git: repo: https://github.com/zsh-users/zsh-autosuggestions.git dest: "{{ zsh_custom }}/plugins/zsh-autosuggestions" - update: no + update: yes - name: Clone zsh-history-substring-search plugin git: repo: https://github.com/zsh-users/zsh-history-substring-search.git dest: "{{ zsh_custom }}/plugins/zsh-history-substring-search" - update: no + update: yes - - name: Clone zsh-you-should-use plugin + - name: Clone you-should-use plugin git: repo: https://github.com/MichaelAquilina/zsh-you-should-use.git dest: "{{ zsh_custom }}/plugins/you-should-use" - update: no + update: yes - name: Ensure .local/bin directory exists file: