Improve ISO installer non-GPU and bundled setup flow

This commit is contained in:
Jino Jose committed 2026-06-24 17:03:59 +05:30
1 parent 82cd52a409
commit ec296b3d42
7 files changed
+148 -25

No files matched your search

+1
View File
@@ -11,6 +11,7 @@
python_version: "3.11"
cuda_version: "12.4"
skip_roles: "" # comma-separated list of role names to skip (set by install.sh)
gpu_available: false
roles:
- role: base
+19
View File
@@ -34,6 +34,21 @@
enabled: yes
state: started
- name: Configure Docker standard runtime for non-GPU installs
copy:
dest: /etc/docker/daemon.json
content: |
{
"log-driver": "json-file",
"log-opts": {
"max-size": "100m",
"max-file": "3"
}
}
mode: "0644"
notify: restart docker
when: not (gpu_available | default(false) | bool)
# NVIDIA Container Toolkit (allows GPU passthrough into containers)
- name: Add NVIDIA Container Toolkit repo
shell: |
@@ -44,16 +59,19 @@
tee /etc/apt/sources.list.d/nvidia-container-toolkit.list
args:
creates: /etc/apt/sources.list.d/nvidia-container-toolkit.list
when: gpu_available | default(false) | bool
- name: Install NVIDIA Container Toolkit
apt:
name: nvidia-container-toolkit
state: present
update_cache: yes
when: gpu_available | default(false) | bool
- name: Configure Docker to use NVIDIA runtime
shell: nvidia-ctk runtime configure --runtime=docker
notify: restart docker
when: gpu_available | default(false) | bool
- name: Set NVIDIA as default Docker runtime
copy:
@@ -75,3 +93,4 @@
}
mode: "0644"
notify: restart docker
when: gpu_available | default(false) | bool