fix modify the way of the command 'yum remove xxx', e.g. docker-selinux and docker-engine-selinux packages

This commit is contained in:
Yumo Yang 2018-10-31 17:16:35 +08:00
parent d269e7f46c
commit 5da18854a3

View file

@ -19,13 +19,13 @@
- docker - docker
- docker-common - docker-common
- docker-engine - docker-engine
- docker-selinux - docker-selinux.noarch
- docker-client - docker-client
- docker-client-latest - docker-client-latest
- docker-latest - docker-latest
- docker-latest-logrotate - docker-latest-logrotate
- docker-logrotate - docker-logrotate
- docker-engine-selinux - docker-engine-selinux.noarch
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'))