diff --git a/ansible/roles/turboquant-deploy/tasks/debian.yml b/ansible/roles/turboquant-deploy/tasks/debian.yml new file mode 100644 index 00000000..cec46d93 --- /dev/null +++ b/ansible/roles/turboquant-deploy/tasks/debian.yml @@ -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' }}"