Uninstall old versions of Docker

This commit is contained in:
Chen Hong 2018-08-14 17:48:30 +08:00
parent 36e8683cf5
commit 2dfa928c90

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'))