upgrade_pre.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. ---
  2. # This is a hack to allow us to update various components without restarting
  3. # services. This will persist into the upgrade play as well, so everything
  4. # needs to be restarted by hand.
  5. - set_fact:
  6. skip_node_svc_handlers: True
  7. - import_tasks: registry_auth.yml
  8. # Prepull the node and pod image, it's used by lots of components
  9. - import_tasks: prepull.yml
  10. - name: update package meta data to speed install later.
  11. command: "{{ ansible_pkg_mgr }} makecache"
  12. register: result
  13. until: result is succeeded
  14. when: not openshift_is_atomic | bool
  15. # Prepull the rpms for docker upgrade, but don't install
  16. - name: download docker upgrade rpm
  17. command: "{{ ansible_pkg_mgr }} install -y --downloadonly docker{{ '-' + docker_version }}"
  18. register: result
  19. until: result is succeeded
  20. when:
  21. - l_docker_upgrade is defined
  22. - l_docker_upgrade | bool
  23. - name: Stage cri-o updates
  24. command: "{{ ansible_pkg_mgr }} install -y --downloadonly {{ crio_pkgs | join(' ') }}"
  25. register: result
  26. until: result is succeeded
  27. when:
  28. - openshift_use_crio | bool
  29. vars:
  30. crio_pkgs:
  31. - "cri-o"
  32. - "cri-tools"
  33. - import_tasks: upgrade/rpm_upgrade.yml
  34. when: not openshift_is_atomic | bool
  35. - import_tasks: prepull_check.yml
  36. - import_tasks: copy_image_to_ostree.yml
  37. when: openshift_is_atomic | bool