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.
18 - name: Add Docker GPG key.
20 key: https://download.docker.com/linux/centos/gpg
23 - name: Ensure epel is installed.
27 - name: Ensure depdencies are installed.
50 - name: install the 'Development tools' package group
52 name: "@Development tools"
55 - name: Add Docker repository.
57 url: "{{ docker_yum_repo_url }}"
58 dest: '/etc/yum.repos.d/docker-ce.repo'
63 - name: Configure Docker Edge repo.
65 dest: '/etc/yum.repos.d/docker-ce.repo'
66 section: 'docker-ce-edge'
68 value: '{{ docker_yum_repo_enable_edge }}'
70 - name: Configure Docker Test repo.
72 dest: '/etc/yum.repos.d/docker-ce.repo'
73 section: 'docker-ce-test'
75 value: '{{ docker_yum_repo_enable_test }}'