feat: add ansible/roles/turboquant-deploy/tasks/debian.yml for TurboQuant deployment
This commit is contained in:
23
ansible/roles/turboquant-deploy/tasks/debian.yml
Normal file
23
ansible/roles/turboquant-deploy/tasks/debian.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
---
|
||||
# Debian/Ubuntu-specific tasks
|
||||
|
||||
- name: Install dependencies
|
||||
apt:
|
||||
name:
|
||||
- build-essential
|
||||
- cmake
|
||||
- git
|
||||
- python3
|
||||
- python3-pip
|
||||
state: present
|
||||
update_cache: yes
|
||||
|
||||
- name: Check for NVIDIA GPU
|
||||
shell: lspci | grep -i nvidia
|
||||
register: nvidia_check
|
||||
failed_when: false
|
||||
changed_when: false
|
||||
|
||||
- name: Set GPU type
|
||||
set_fact:
|
||||
gpu_type: "{{ 'nvidia' if nvidia_check.rc == 0 else 'none' }}"
|
||||
Reference in New Issue
Block a user