2017-08-24 17:09:52 +08:00
|
|
|
---
|
2015-12-31 00:11:33 +08:00
|
|
|
docker_kernel_min_version: '0'
|
|
|
|
|
2018-03-07 20:11:20 +08:00
|
|
|
# https://docs.docker.com/engine/installation/linux/centos/#install-from-a-package
|
2020-09-23 23:32:19 +08:00
|
|
|
# https://download.docker.com/linux/centos/<centos_version>>/x86_64/stable/Packages/
|
2017-01-23 19:05:43 +08:00
|
|
|
# or do 'yum --showduplicates list docker-engine'
|
|
|
|
docker_versioned_pkg:
|
2018-03-07 20:11:20 +08:00
|
|
|
'latest': docker-ce
|
2020-04-09 01:09:45 +08:00
|
|
|
'17.03': docker-ce-17.03.3.ce-1.el7
|
|
|
|
'17.09': docker-ce-17.09.1.ce-1.el7.centos
|
2018-10-04 17:05:55 +08:00
|
|
|
'17.12': docker-ce-17.12.1.ce-1.el7.centos
|
|
|
|
'18.03': docker-ce-18.03.1.ce-1.el7.centos
|
2020-04-09 01:09:45 +08:00
|
|
|
'18.06': docker-ce-18.06.3.ce-3.el7
|
|
|
|
'18.09': docker-ce-18.09.9-3.el7
|
2020-09-25 21:11:11 +08:00
|
|
|
'19.03': docker-ce-19.03.13-3.el{{ ansible_distribution_major_version }}
|
|
|
|
'stable': docker-ce-19.03.13-3.el{{ ansible_distribution_major_version }}
|
|
|
|
'edge': docker-ce-19.03.13-3.el{{ ansible_distribution_major_version }}
|
2018-03-07 20:11:20 +08:00
|
|
|
|
2020-05-25 20:37:11 +08:00
|
|
|
docker_cli_versioned_pkg:
|
|
|
|
'latest': docker-ce-cli
|
|
|
|
'18.09': docker-ce-cli-18.09.9-3.el7
|
2020-09-25 21:11:11 +08:00
|
|
|
'19.03': docker-ce-cli-19.03.13-3.el{{ ansible_distribution_major_version }}
|
2020-05-25 20:37:11 +08:00
|
|
|
|
2018-03-07 20:11:20 +08:00
|
|
|
docker_selinux_versioned_pkg:
|
2020-04-09 01:09:45 +08:00
|
|
|
'latest': docker-ce-selinux-17.03.3.ce-1.el7
|
|
|
|
'17.03': docker-ce-selinux-17.03.3.ce-1.el7
|
|
|
|
'stable': docker-ce-selinux-17.03.3.ce-1.el7
|
|
|
|
'edge': docker-ce-selinux-17.03.3.ce-1.el7
|
2017-03-03 04:48:09 +08:00
|
|
|
|
2017-01-23 19:05:43 +08:00
|
|
|
|
2018-10-04 17:05:55 +08:00
|
|
|
docker_pkgs_use_docker_ce:
|
|
|
|
- name: "{{ docker_selinux_versioned_pkg[docker_selinux_version | string] }}"
|
|
|
|
yum_conf: "{{ docker_yum_conf }}"
|
|
|
|
- name: "{{ docker_versioned_pkg[docker_version | string] }}"
|
|
|
|
yum_conf: "{{ docker_yum_conf }}"
|
|
|
|
|
|
|
|
docker_pkgs:
|
2020-06-05 20:55:44 +08:00
|
|
|
- name: "{{ containerd_versioned_pkg[containerd_version | string] }}"
|
|
|
|
yum_conf: "{{ docker_yum_conf }}"
|
2020-05-25 20:37:11 +08:00
|
|
|
- name: "{{ docker_cli_versioned_pkg[docker_cli_version | string] }}"
|
|
|
|
yum_conf: "{{ docker_yum_conf }}"
|
2018-10-04 17:05:55 +08:00
|
|
|
- name: "{{ docker_versioned_pkg[docker_version | string] }}"
|
|
|
|
yum_conf: "{{ docker_yum_conf }}"
|
|
|
|
|
2015-12-31 00:11:33 +08:00
|
|
|
docker_package_info:
|
|
|
|
pkg_mgr: yum
|
2018-10-04 17:05:55 +08:00
|
|
|
pkgs: |-
|
2020-05-25 20:37:11 +08:00
|
|
|
{%- if docker_version != "latest" and docker_version is version('17.04', '<') -%}
|
2018-10-04 17:05:55 +08:00
|
|
|
{{ docker_pkgs_use_docker_ce }}
|
|
|
|
{%- else -%}
|
|
|
|
{{ docker_pkgs }}
|
|
|
|
{%- endif %}
|
2015-12-31 00:11:33 +08:00
|
|
|
|
|
|
|
docker_repo_key_info:
|
|
|
|
pkg_key: ''
|
|
|
|
repo_keys: []
|
|
|
|
|
|
|
|
docker_repo_info:
|
|
|
|
pkg_repo: ''
|
|
|
|
repos: []
|