From 66fe550fdc15cba2091e7e5f6786e10d17291722 Mon Sep 17 00:00:00 2001 From: oguzkaganozt Date: Wed, 31 Jan 2024 18:11:48 +0300 Subject: [PATCH] Update NVIDIA container toolkit repository and restart docker daemon --- ansible/roles/nvidia_docker/tasks/main.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ansible/roles/nvidia_docker/tasks/main.yaml b/ansible/roles/nvidia_docker/tasks/main.yaml index 6a0fffa2468..34ae045cc2c 100644 --- a/ansible/roles/nvidia_docker/tasks/main.yaml +++ b/ansible/roles/nvidia_docker/tasks/main.yaml @@ -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 @@ -25,3 +25,9 @@ ansible.builtin.shell: | nvidia-ctk runtime configure --runtime=docker changed_when: true + +- name: Restart docker daemon + become: true + ansible.builtin.shell: | + systemctl restart docker + changed_when: true