summaryrefslogtreecommitdiffstats
path: root/roles/docker/tasks/configure_apt.yml
blob: 3fd961a89d01eff692f124a4c2bc790e9029b258 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
---
# tasks file for ansible-role-cuda
- name: Trust packaging key for Nvidia repositories (apt)
  apt_key:
    data: "{{ lookup('file', 'files/nvidia_docker_packaging_key.asc') }}"
    id: "{{ nvidia_docker_packaging_key_id }}"
    state: present

- name: Configure Nvidia repository (apt)
  apt_repository:
    repo: "deb {{ nvidia_docker_repo_url }}/{{ nvidia_docker_repo_subfolder }} /"
    filename: nvidia_docker
    state: present

# vim:ft=ansible: