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
636 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. when:
  10. - ansible_os_family == 'Debian'
  11. - (docker_versioned_pkg[docker_version | string] | search('docker-ce'))
  12. - name: Ensure old versions of Docker are not installed. | RedHat
  13. package:
  14. name: '{{ item }}'
  15. state: absent
  16. with_items:
  17. - docker
  18. - docker-common
  19. - docker-engine
  20. - docker-selinux
  21. when:
  22. - ansible_os_family == 'RedHat'
  23. - (docker_versioned_pkg[docker_version | string] | search('docker-ce'))
  24. - not is_atomic