In CentOS 8.x Docker install Step: remove podman when existing (#8016)
This commit is contained in:
parent
af949cd967
commit
f5885d05ea
2 changed files with 15 additions and 0 deletions
|
@ -33,6 +33,10 @@ docker_remove_packages_yum:
|
|||
- docker-logrotate
|
||||
- docker-engine-selinux.noarch
|
||||
|
||||
# remove podman to avoid containerd.io confliction
|
||||
podman_remove_packages_yum:
|
||||
- podman
|
||||
|
||||
docker_remove_packages_apt:
|
||||
- docker
|
||||
- docker-engine
|
||||
|
|
|
@ -15,6 +15,17 @@
|
|||
- ansible_os_family == 'Debian'
|
||||
- (docker_versioned_pkg[docker_version | string] is search('docker-ce'))
|
||||
|
||||
|
||||
- name: Ensure podman not installed. | RedHat
|
||||
package:
|
||||
name: '{{ podman_remove_packages_yum }}'
|
||||
state: absent
|
||||
when:
|
||||
- ansible_os_family == 'RedHat'
|
||||
- (docker_versioned_pkg[docker_version | string] is search('docker-ce'))
|
||||
- not is_ostree
|
||||
|
||||
|
||||
- name: Ensure old versions of Docker are not installed. | RedHat
|
||||
package:
|
||||
name: '{{ docker_remove_packages_yum }}'
|
||||
|
|
Loading…
Reference in a new issue