Skip to content

Commit

Permalink
Update to address PR review
Browse files Browse the repository at this point in the history
  • Loading branch information
cdunbar13 committed Oct 16, 2024
1 parent 8da0bed commit 8c8dfbd
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 13 deletions.
2 changes: 1 addition & 1 deletion ansible/roles/enroot/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
# limitations under the License.

dependencies:
- role: nvidia_container
- role: nvidia_container_toolkit_repo
when: enroot_install_optional_deps
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@

nvidia_gpg_key_url: https://nvidia.github.io/libnvidia-container/gpgkey
nvidia_repo_url_deb: https://nvidia.github.io/libnvidia-container/stable/deb
nvidia_gpg_key_deb: /etc/apt/keyrings/nvidia-container-toolkit-keyring.gpg
nvidia_repo_file_rhel: https://nvidia.github.io/libnvidia-container/stable/rpm/nvidia-container-toolkit.repo
nvidia_gpg_key_deb: /etc/apt/keyrings/nvidia-container-toolkit-keyring.asc
nvidia_repo_file_rpm: https://nvidia.github.io/libnvidia-container/stable/rpm/nvidia-container-toolkit.repo
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,11 @@
- name: Collect Nvidia Container Repo GPG Key
ansible.builtin.get_url:
url: "{{ nvidia_gpg_key_url }}"
dest: /tmp/gpgkey
dest: "{{ nvidia_deb_gpg_key }}"
mode: '0644'
force: true

- name: De-Armor Nvidia GPG key
command: "gpg --dearmor --no-tty -o {{ nvidia_deb_gpg_key }} /tmp/gpgkey"
changed_when: false

- name: Add Nvidia Container Repo
ansible.builtin.apt_repository:
repo: "deb [arch=amd64 signed-by={{ nvidia_deb_gpg_key }}] {{ nvidia_repo_url }}/deb/$(ARCH) /"
repo: "deb [arch=amd64 signed-by={{ nvidia_deb_gpg_key }}] {{ nvidia_repo_url_deb }}/$(ARCH) /"
filename: nvidia-container-toolkit.list

- name: Update repositories cache
ansible.builtin.apt:
update_cache: yes

0 comments on commit 8c8dfbd

Please sign in to comment.