mirror of
https://github.com/openclaw/openclaw-ansible.git
synced 2026-07-21 01:05:24 -04:00
Playbook crashing when it tries to install homebrew #3
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Xyz3R on GitHub (Jan 13, 2026).
Requires to be run as non-root
TASK [Install Homebrew (macOS and Linux)] ************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"\n", "delta": "0:00:00.118638", "end": "2026-01-13 14:50:55.184116", "msg": "non-zero return code", "rc": 1, "start": "2026-01-13 14:50:55.065478", "stderr": "Don't run this as root!", "stderr_lines": ["Don't run this as root!"], "stdout": "==> Running in non-interactive mode because
$NONINTERACTIVEis set.\n==> Checking forsudoaccess (which may request your password)...", "stdout_lines": ["==> Running in non-interactive mode because$NONINTERACTIVEis set.", "==> Checking forsudoaccess (which may request your password)..."]}PLAY RECAP *******************************************************************************************************************************
localhost : ok=10 changed=1 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
@lweighall commented on GitHub (Feb 4, 2026):
I ran into this same problem. I added the become: false to the task in this pull request but got the same error. I always ended up having to install brew (linuxbrew, I'm using Ubuntu) myself.
Once I did that though a new set of problems emerged. Here was my steps.
https://brew.sh/
At this point run the playbook again and you'll get this error:
The issue is with the ansible_env (facts)
OLD:
NEW:
@royvnasser commented on GitHub (Feb 14, 2026):
+1 same error
@ElijahLynn commented on GitHub (Feb 14, 2026):
Fresh user here: The playbook I ran didn't install brew at all. Would be great if it took care of installing homebrew too.
The docs here don't mention the brew prerequisite either: https://docs.openclaw.ai/install/ansible#requirements
@ElijahLynn commented on GitHub (Feb 14, 2026):
homebrew (
brew) support was removed by @justin-russell in:6a1e762e3cBut from my understanding as a brand new openclaw user is that brew works on linux and is needed for proper linux support. Unless you don't use any skills I suppose. I'm a bit confused at this point. Still working to get my hello-world Openclaw instance up with some useful skills.
https://docs.openclaw.ai/help/faq#does-homebrew-work-on-linux