Created
February 12, 2018 14:09
-
-
Save dholt/a7917e5442d2782564da2b02bcce6318 to your computer and use it in GitHub Desktop.
Kubespray NVIDIA GPU support
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Override Docker install vars to install version compatible with nvidia-docker2 | |
docker_version: '17.03.2' | |
docker_versioned_pkg: | |
'17.03.2': docker-ce=17.03.2~ce-0~ubuntu-xenial | |
docker_package_info: | |
pkg_mgr: apt | |
pkgs: | |
- name: "{{ docker_versioned_pkg[docker_version | string] }}" | |
force: yes | |
docker_apt_repo_gpgkey: 'https://download.docker.com/linux/ubuntu/gpg' | |
docker_apt_repo_base_url: 'https://download.docker.com/linux' | |
docker_repo_key_info: | |
pkg_key: apt_key | |
url: '{{ docker_apt_repo_gpgkey }}' | |
repo_keys: | |
- 9DC858229FC7DD38854AE2D88D81803C0EBFCD88 | |
docker_repo_info: | |
pkg_repo: apt_repository | |
repos: | |
- deb [arch=amd64] {{ docker_apt_repo_base_url }}/{{ ansible_distribution|lower }} {{ ansible_distribution_release|lower }} stable |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment