From 9bf792ce0b1a89106094befac17259115c3aa55a Mon Sep 17 00:00:00 2001 From: Alexander Block Date: Mon, 23 Jan 2017 12:05:43 +0100 Subject: [PATCH] Pin docker version on RedHat and CentOS to the desired version --- roles/docker/vars/redhat.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/roles/docker/vars/redhat.yml b/roles/docker/vars/redhat.yml index 5dde8dee1..287af6faf 100644 --- a/roles/docker/vars/redhat.yml +++ b/roles/docker/vars/redhat.yml @@ -1,9 +1,17 @@ docker_kernel_min_version: '0' +# https://yum.dockerproject.org/repo/main/centos/7/Packages/ +# or do 'yum --showduplicates list docker-engine' +docker_versioned_pkg: + 'latest': docker-engine + '1.11': docker-engine-1.11.2-1.el7.centos + '1.12': docker-engine-1.12.6-1.el7.centos + '1.13': docker-engine-1.13.0-1.el7.centos + docker_package_info: pkg_mgr: yum pkgs: - - name: docker-engine + - name: "{{ docker_versioned_pkg[docker_version | string] }}" docker_repo_key_info: pkg_key: ''