perf(nodejs): disable homebrew auto update to speed up installation

This commit is contained in:
Haitao Pan 2026-06-21 20:14:03 +08:00
parent aa3b4e8069
commit 51d08cf9db

View File

@ -19,6 +19,8 @@
failed_when: nodejs_brew_install.rc != 0 and 'already installed' not in (nodejs_brew_install.stdout | lower) and 'already installed' not in (nodejs_brew_install.stderr | lower) failed_when: nodejs_brew_install.rc != 0 and 'already installed' not in (nodejs_brew_install.stdout | lower) and 'already installed' not in (nodejs_brew_install.stderr | lower)
environment: environment:
HOMEBREW_DEVELOPER: "1" HOMEBREW_DEVELOPER: "1"
HOMEBREW_NO_AUTO_UPDATE: "1"
HOMEBREW_NO_INSTALL_CLEANUP: "1"
- name: Ensure {{ nodejs_homebrew_formula }} is linked as the default node - name: Ensure {{ nodejs_homebrew_formula }} is linked as the default node
ansible.builtin.command: "brew link --force --overwrite {{ nodejs_homebrew_formula }}" ansible.builtin.command: "brew link --force --overwrite {{ nodejs_homebrew_formula }}"