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.

52 lines
1.5 KiB

  1. ---
  2. docker_kernel_min_version: '0'
  3. # https://docs.docker.com/engine/installation/linux/centos/#install-from-a-package
  4. # https://download.docker.com/linux/centos/7/x86_64/stable/Packages/
  5. # or do 'yum --showduplicates list docker-engine'
  6. docker_versioned_pkg:
  7. 'latest': docker-ce
  8. '1.13': docker-engine-1.13.1-1.el7.centos
  9. '17.03': docker-ce-17.03.2.ce-1.el7.centos
  10. '17.09': docker-ce-17.09.0.ce-1.el7.centos
  11. '17.12': docker-ce-17.12.1.ce-1.el7.centos
  12. '18.03': docker-ce-18.03.1.ce-1.el7.centos
  13. '18.06': docker-ce-18.06.2.ce-3.el7
  14. '18.09': docker-ce-18.09.7-3.el7
  15. 'stable': docker-ce-18.09.7-3.el7
  16. 'edge': docker-ce-18.09.7-3.el7
  17. docker_selinux_versioned_pkg:
  18. 'latest': docker-ce-selinux
  19. '1.13': docker-engine-selinux-1.13.1-1.el7.centos
  20. '17.03': docker-ce-selinux-17.03.2.ce-1.el7.centos
  21. 'stable': docker-ce-selinux-17.03.2.ce-1.el7.centos
  22. 'edge': docker-ce-selinux-17.03.2.ce-1.el7.centos
  23. docker_pkgs_use_docker_ce:
  24. - name: "{{ docker_selinux_versioned_pkg[docker_selinux_version | string] }}"
  25. yum_conf: "{{ docker_yum_conf }}"
  26. - name: "{{ docker_versioned_pkg[docker_version | string] }}"
  27. yum_conf: "{{ docker_yum_conf }}"
  28. docker_pkgs:
  29. - name: "{{ docker_versioned_pkg[docker_version | string] }}"
  30. yum_conf: "{{ docker_yum_conf }}"
  31. docker_package_info:
  32. pkg_mgr: yum
  33. pkgs: |-
  34. {%- if docker_version is version('17.04', '<') -%}
  35. {{ docker_pkgs_use_docker_ce }}
  36. {%- else -%}
  37. {{ docker_pkgs }}
  38. {%- endif %}
  39. docker_repo_key_info:
  40. pkg_key: ''
  41. repo_keys: []
  42. docker_repo_info:
  43. pkg_repo: ''
  44. repos: []