From 181cfe20fb329952560db1340a09c7cc6277bf33 Mon Sep 17 00:00:00 2001 From: Matt Reeves Date: Sat, 21 Sep 2024 19:53:24 -0400 Subject: [PATCH] fix zsh playbook --- ansible/playbooks/zsh.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ansible/playbooks/zsh.yml b/ansible/playbooks/zsh.yml index c1d2f44..3656a7c 100644 --- a/ansible/playbooks/zsh.yml +++ b/ansible/playbooks/zsh.yml @@ -1,7 +1,7 @@ --- - name: Configure Zsh, Neofetch, FZF, and custom .zshrc hosts: all - become: true + become: false vars: zsh_custom: "{{ ansible_env.HOME }}/.oh-my-zsh/custom" user: "{{ ansible_user }}" @@ -48,9 +48,11 @@ - name: Install Oh My Zsh (unattended) shell: | RUNZSH=no sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" + environment: + HOME: "/home/{{ ansible_user }}" args: - chdir: "/home/{{ user }}" - creates: "/home/{{ user }}/.oh-my-zsh" + chdir: "/home/{{ ansible_user }}" + creates: "/home/{{ ansible_user }}/.oh-my-zsh" - name: Clone zsh-syntax-highlighting plugin git: