haxorof/ansible-role-docker-ce

Remove handling of deprecated variable docker_pkg_name

haxorof opened this issue · 0 comments

Because Docker now separated the cli into a separate package since 18.09 the docker_pkg_name cannot handle this and is replaced by docker_version which handle it in a bit smarter way.

- name: Install Docker CE 17.06 (using docker_pkg_name)
include_role:
name: haxorof.docker_ce
vars:
docker_pkg_name: docker-ce-17.06.0.ce-1.el7.centos

- name: Temporary handling of deprecated variable docker_pkg_name
set_fact:
docker_version: "{{ docker_pkg_name | regex_replace('^docker-ce.(.+)$', '\\1') }}"
when: docker_pkg_name is match('docker-ce' + docker_os_pkg_version_separator[_docker_os_dist])
tags: ["install", "configure", "postinstall", "docker_install", "docker_configure", "docker_postinstall"]

# Docker package to install. Change this if you want a specific version of Docker
# DEPRECATED! use docker_version instead
docker_pkg_name: docker-ce