feat: add ansible/roles/turboquant-deploy/tasks/darwin.yml for TurboQuant deployment
This commit is contained in:
19
ansible/roles/turboquant-deploy/tasks/darwin.yml
Normal file
19
ansible/roles/turboquant-deploy/tasks/darwin.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
# 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' }}"
|
||||
Reference in New Issue
Block a user