Skip to content

Commit dfa7b98

Browse files
author
sheeek
committed
Fix PATH variable in become_user context
- Use hardcoded PATH instead of ansible_env.PATH - ansible_env is not available in become_user context - Fixes: dict object has no attribute PATH error
1 parent f1c7206 commit dfa7b98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roles/clawdbot/tasks/clawdbot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
become_user: "{{ clawdbot_user }}"
4040
environment:
4141
PNPM_HOME: "{{ clawdbot_home }}/.local/share/pnpm"
42-
PATH: "{{ clawdbot_home }}/.local/bin:{{ ansible_env.PATH }}"
42+
PATH: "{{ clawdbot_home }}/.local/bin:/usr/local/bin:/usr/bin:/bin"
4343

4444
- name: Configure .bashrc for clawdbot user
4545
ansible.builtin.blockinfile:

0 commit comments

Comments
 (0)