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.

32 lines
800 B

  1. ---
  2. - name: Ensure old versions of Docker are not installed. | Debian
  3. package:
  4. name: '{{ item }}'
  5. state: absent
  6. with_items:
  7. - docker
  8. - docker-engine
  9. - docker.io
  10. when:
  11. - ansible_os_family == 'Debian'
  12. - (docker_versioned_pkg[docker_version | string] | search('docker-ce'))
  13. - name: Ensure old versions of Docker are not installed. | RedHat
  14. package:
  15. name: '{{ item }}'
  16. state: absent
  17. with_items:
  18. - docker
  19. - docker-common
  20. - docker-engine
  21. - docker-selinux
  22. - docker-client
  23. - docker-client-latest
  24. - docker-latest
  25. - docker-latest-logrotate
  26. - docker-logrotate
  27. - docker-engine-selinux
  28. when:
  29. - ansible_os_family == 'RedHat'
  30. - (docker_versioned_pkg[docker_version | string] | search('docker-ce'))
  31. - not is_atomic