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' }}"