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
75 - dh-strip-nondeterminism
107 - libriemann-client-dev
116 - snmp-mibs-downloader
119 - libtokyocabinet-dev
130 - protobuf-c-compiler
134 - name: Add Docker apt key.
136 url: https://download.docker.com/linux/ubuntu/gpg
137 id: 9DC858229FC7DD38854AE2D88D81803C0EBFCD88
139 register: add_repository_key
142 - name: Ensure curl is present (on older systems without SNI).
143 package: name=curl state=present
144 when: add_repository_key|failed
146 - name: Add Docker apt key (alternative for older systems without SNI).
147 # yamllint disable rule:line-length
148 shell: "curl -sSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -"
149 # yamllint enable rule:line-length
152 when: add_repository_key|failed
154 - name: Add Docker repository.
156 repo: "{{ docker_apt_repository }}"