From e46c2b6155251a9a5a5daf5afb89a4ae480aeab9 Mon Sep 17 00:00:00 2001 From: Alexander Whitestone Date: Thu, 16 Apr 2026 01:50:47 +0000 Subject: [PATCH] feat: add ansible/roles/turboquant-deploy/tasks/darwin.yml for TurboQuant deployment --- .../roles/turboquant-deploy/tasks/darwin.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 ansible/roles/turboquant-deploy/tasks/darwin.yml diff --git a/ansible/roles/turboquant-deploy/tasks/darwin.yml b/ansible/roles/turboquant-deploy/tasks/darwin.yml new file mode 100644 index 00000000..cb14d947 --- /dev/null +++ b/ansible/roles/turboquant-deploy/tasks/darwin.yml @@ -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' }}"