Skip to content

Commit

Permalink
Update NVIDIA container toolkit repository and restart docker daemon
Browse files Browse the repository at this point in the history
  • Loading branch information
oguzkaganozt committed Jan 31, 2024
1 parent cc7342a commit 66fe550
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ansible/roles/nvidia_docker/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
- name: Add NVIDIA container toolkit repository
become: true
ansible.builtin.apt_repository:
repo: deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list
repo: deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://nvidia.github.io/libnvidia-container/stable/deb/$(ARCH) /
state: present
filename: nvidia-container-toolkit
update_cache: true
Expand All @@ -25,3 +25,9 @@
ansible.builtin.shell: |
nvidia-ctk runtime configure --runtime=docker
changed_when: true

- name: Restart docker daemon

Check failure on line 29 in ansible/roles/nvidia_docker/tasks/main.yaml

View workflow job for this annotation

GitHub Actions / pre-commit-ansible

command-instead-of-module

systemctl used in place of systemd module
become: true
ansible.builtin.shell: |
systemctl restart docker
changed_when: true

0 comments on commit 66fe550

Please sign in to comment.