Merge pull request #3101 from chenhonggc/uninstall_old_versions_of_docker

Uninstall old versions of Docker
This commit is contained in:
Chad Swenson 2018-08-14 11:32:23 -05:00 committed by GitHub
commit 5dbfa0384e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,6 +6,7 @@
with_items:
- docker
- docker-engine
- docker.io
when:
- ansible_os_family == 'Debian'
- (docker_versioned_pkg[docker_version | string] | search('docker-ce'))
@ -19,6 +20,12 @@
- docker-common
- docker-engine
- docker-selinux
- docker-client
- docker-client-latest
- docker-latest
- docker-latest-logrotate
- docker-logrotate
- docker-engine-selinux
when:
- ansible_os_family == 'RedHat'
- (docker_versioned_pkg[docker_version | string] | search('docker-ce'))