upgrade_pre.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. # Prepull the rpms for docker upgrade, but don't install
  15. - name: download docker upgrade rpm
  16. command: "{{ ansible_pkg_mgr }} install -y --downloadonly docker{{ '-' + docker_version }}"
  17. register: result
  18. until: result is succeeded
  19. when:
  20. - l_docker_upgrade is defined
  21. - l_docker_upgrade | bool
  22. - name: Stage cri-o updates
  23. command: "{{ ansible_pkg_mgr }} install -y --downloadonly {{ crio_pkgs | join(' ') }}"
  24. register: result
  25. until: result is succeeded
  26. when:
  27. - openshift_use_crio | bool
  28. vars:
  29. crio_pkgs:
  30. - "cri-o"
  31. - "cri-tools"
  32. - import_tasks: upgrade/rpm_upgrade.yml
  33. - import_tasks: prepull_check.yml