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
133 - name: Add Docker apt key.
135 url: https://download.docker.com/linux/ubuntu/gpg
136 id: 9DC858229FC7DD38854AE2D88D81803C0EBFCD88
138 register: add_repository_key
141 - name: Ensure curl is present (on older systems without SNI).
142 package: name=curl state=present
143 when: add_repository_key|failed
145 - name: Add Docker apt key (alternative for older systems without SNI).
146 # yamllint disable rule:line-length
147 shell: "curl -sSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -"
148 # yamllint enable rule:line-length
151 when: add_repository_key|failed
153 - name: Add Docker repository.
155 repo: "{{ docker_apt_repository }}"