Skip to content
pre-upgrade.yml 980 B
Newer Older
- name: Remove legacy docker repo file
  file:
    path: "{{ yum_repo_dir }}/docker.repo"
    state: absent
  when:
    - ansible_os_family == 'RedHat'
spaced's avatar
spaced committed
    - not is_ostree
- name: Ensure old versions of Docker are not installed. | Debian
  apt:
    name: '{{ docker_remove_packages_apt }}'
  when:
    - 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
    name: '{{ docker_remove_packages_yum }}'
  when:
    - ansible_os_family == 'RedHat'
    - (docker_versioned_pkg[docker_version | string] is search('docker-ce'))
spaced's avatar
spaced committed
    - not is_ostree