Fix libxcrypt test setup on macOS 26.3 (#86598)

This commit is contained in:
Matt Clay
2026-02-26 03:36:55 +00:00
committed by GitHub
parent 8e9ce75266
commit e82d9564f0
2 changed files with 6 additions and 0 deletions
@@ -35,5 +35,8 @@
notify: libxcrypt was installed
become: yes
become_user: "{{ brew_stat.stat.pw_name }}"
vars:
# Avoid using the current interpreter, which may be from a venv that the become user has no access to.
ansible_python_interpreter: "{{ lookup('env', 'ANSIBLE_TEST_PYTHON_INTERPRETER') }}"
environment:
HOMEBREW_NO_AUTO_UPDATE: True
@@ -32,5 +32,8 @@
command: brew uninstall libxcrypt
become: yes
become_user: "{{ brew_stat.stat.pw_name }}"
vars:
# Avoid using the current interpreter, which may be from a venv that the become user has no access to.
ansible_python_interpreter: "{{ lookup('env', 'ANSIBLE_TEST_PYTHON_INTERPRETER') }}"
environment:
HOMEBREW_NO_AUTO_UPDATE: True