Skip to content

Commit 181cfe2

Browse files
committedSep 21, 2024
fix zsh playbook
1 parent e540c5d commit 181cfe2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed
 

‎ansible/playbooks/zsh.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
- name: Configure Zsh, Neofetch, FZF, and custom .zshrc
33
hosts: all
4-
become: true
4+
become: false
55
vars:
66
zsh_custom: "{{ ansible_env.HOME }}/.oh-my-zsh/custom"
77
user: "{{ ansible_user }}"
@@ -48,9 +48,11 @@
4848
- name: Install Oh My Zsh (unattended)
4949
shell: |
5050
RUNZSH=no sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
51+
environment:
52+
HOME: "/home/{{ ansible_user }}"
5153
args:
52-
chdir: "/home/{{ user }}"
53-
creates: "/home/{{ user }}/.oh-my-zsh"
54+
chdir: "/home/{{ ansible_user }}"
55+
creates: "/home/{{ ansible_user }}/.oh-my-zsh"
5456

5557
- name: Clone zsh-syntax-highlighting plugin
5658
git:

0 commit comments

Comments
 (0)
Please sign in to comment.