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.

25 lines
740 B

  1. ---
  2. - name: Remove legacy docker repo file
  3. file:
  4. path: "{{ yum_repo_dir }}/docker.repo"
  5. state: absent
  6. when:
  7. - ansible_distribution in ["CentOS","RedHat","OracleLinux"]
  8. - not is_ostree
  9. - name: Ensure old versions of Docker are not installed. | Debian
  10. apt:
  11. name: '{{ docker_remove_packages_apt }}'
  12. state: absent
  13. when:
  14. - ansible_os_family == 'Debian'
  15. - (docker_versioned_pkg[docker_version | string] is search('docker-ce'))
  16. - name: Ensure old versions of Docker are not installed. | RedHat
  17. yum:
  18. name: '{{ docker_remove_packages_yum }}'
  19. state: absent
  20. when:
  21. - ansible_os_family == 'RedHat'
  22. - (docker_versioned_pkg[docker_version | string] is search('docker-ce'))
  23. - not is_ostree