Files
turboquant/ansible/roles/turboquant-deploy/tasks/darwin.yml

20 lines
381 B
YAML

---
# macOS-specific tasks
- name: Install Homebrew dependencies
homebrew:
name:
- cmake
- git
- python@3.11
state: present
- name: Check for Metal support
command: system_profiler SPDisplaysDataType
register: gpu_info
changed_when: false
- name: Set GPU type
set_fact:
gpu_type: "{{ 'apple' if 'Metal' in gpu_info.stdout else 'none' }}"