Commit 737c5b1c authored by Emmanuel Jaep's avatar Emmanuel Jaep
Browse files

debug

parent a946e26d
......@@ -18,6 +18,29 @@
# id: "{{ nvidia_driver_ubuntu_cuda_repo_gpgkey_id }}"
# environment: "{{proxy_env if proxy_env is defined else {}}}"
- name: check that cuda list does not exist (conflicting version)
stat:
path: /etc/apt/sources.list.d/cuda-ubuntu2004-x86_64.list
register: cuda_list_exists
- block:
- name: make a backup copy of the file
copy:
src: "/etc/apt/sources.list.d/cuda-ubuntu2004-x86_64.list"
dest: "/etc/apt/sources.list.d/cuda-ubuntu2004-x86_64.list.bak"
- name: remove the list
file:
path: "/etc/apt/sources.list.d/cuda-ubuntu2004-x86_64.list"
state: absent
when: cuda_list_exists.stat.exists
- name: add key
apt_key:
url: keyserver.ubuntu.com
id: "A4B469963BF863CC"
# As per https://github.com/NVIDIA/nvidia-docker/issues/1632
- name: remove the old nvidia key
apt_key:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment