k8s-sig-cluster-lifecycleawskubesprayhigh-availabilityansiblekubernetes-clustergcekubernetesbare-metal
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
539 B
17 lines
539 B
---
|
|
- name: Ensure old versions of Docker are not installed. | Debian
|
|
apt:
|
|
name: '{{ docker_remove_packages_apt }}'
|
|
state: absent
|
|
when:
|
|
- ansible_os_family == 'Debian'
|
|
- (docker_versioned_pkg[docker_version | string] is search('docker-ce'))
|
|
|
|
- name: Ensure old versions of Docker are not installed. | RedHat
|
|
yum:
|
|
name: '{{ docker_remove_packages_yum }}'
|
|
state: absent
|
|
when:
|
|
- ansible_os_family == 'RedHat'
|
|
- (docker_versioned_pkg[docker_version | string] is search('docker-ce'))
|
|
- not is_atomic
|