Skip to content

Commit

Permalink
Merge pull request #48 from ai4os/nvidia_hold
Browse files Browse the repository at this point in the history
hold nvidia packages
  • Loading branch information
micafer authored Nov 13, 2024
2 parents c99f1a9 + 443ce16 commit 5f3ba34
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions roles/nomad/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,17 @@
- name: "Install CNI plugins"
include_tasks: install_cni.yml

- name: "Hold nvidia packages"
apt:
name: "{{ item }}"
state: held
with_items:
- nvidia-headless-*
- nvidia-utils-*
- nvidia-headless-no-dkms-*
- nvidia-kernel-source-*
when: nvidia_support and ansible_os_family == "Debian"

when: ("nomad_clients" in groups and inventory_hostname in groups["nomad_clients"]) or
("nomad_new_clients" in groups and inventory_hostname in groups["nomad_new_clients"])

Expand Down

0 comments on commit 5f3ba34

Please sign in to comment.