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

  1. ---
  2. - name: Ensure old versions of Docker are not installed. | Debian
  3. apt:
  4. name: '{{ docker_remove_packages_apt }}'
  5. state: absent
  6. when:
  7. - ansible_os_family == 'Debian'
  8. - (docker_versioned_pkg[docker_version | string] is search('docker-ce'))
  9. - name: Ensure old versions of Docker are not installed. | RedHat
  10. yum:
  11. name: '{{ docker_remove_packages_yum }}'
  12. state: absent
  13. when:
  14. - ansible_os_family == 'RedHat'
  15. - (docker_versioned_pkg[docker_version | string] is search('docker-ce'))
  16. - not is_atomic