1 #############################################################################
2 # Copyright (c) 2016 The Linux Foundation and others.
3 # All rights reserved. This program and the accompanying materials
4 # are made available under the terms of the Apache License, Version 2.0
5 # which accompanies this distribution, and is available at
6 # http://www.apache.org/licenses/LICENSE-2.0
7 #############################################################################
9 - name: Ensure old versions of Docker are not installed.
17 - name: Ensure depdencies are installed.
50 - openjdk-8-jre-headless
63 - name: Add Docker apt key.
65 url: https://download.docker.com/linux/ubuntu/gpg
66 id: 9DC858229FC7DD38854AE2D88D81803C0EBFCD88
68 register: add_repository_key
71 - name: Ensure curl is present (on older systems without SNI).
72 package: name=curl state=present
73 when: add_repository_key|failed
75 - name: Add Docker apt key (alternative for older systems without SNI).
76 # yamllint disable rule:line-length
77 shell: "curl -sSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -"
78 # yamllint enable rule:line-length
81 when: add_repository_key|failed
83 - name: Add Docker repository.
85 repo: "{{ docker_apt_repository }}"