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