From 8c9c69aa22809f241078d808f0cd4b4b99236566 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Wed, 25 Mar 2026 15:56:35 +0100 Subject: [PATCH] fix(erpnext): symlink ansible binaries to /usr/local/bin bench setup role spawns a subprocess that checks for ansible on PATH. The binaries are inside the uv venv and not discoverable. Symlink ansible* to /usr/local/bin/ to make them available. --- install/erpnext-install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install/erpnext-install.sh b/install/erpnext-install.sh index 4f9b7f78..fbe73187 100644 --- a/install/erpnext-install.sh +++ b/install/erpnext-install.sh @@ -85,6 +85,7 @@ msg_info "Setting up Production" BENCH_VENV="/home/frappe/.local/share/uv/tools/frappe-bench" $STD curl -fsSL https://bootstrap.pypa.io/get-pip.py | "${BENCH_VENV}/bin/python" $STD "${BENCH_VENV}/bin/python" -m pip install ansible +ln -sf "${BENCH_VENV}"/bin/ansible* /usr/local/bin/ $STD bash -c 'export PATH="/home/frappe/.local/bin:$PATH"; cd /opt/frappe-bench && bench setup production frappe --yes' $STD systemctl enable --now supervisor msg_ok "Set up Production"