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