upgrade_pre.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. - name: update package meta data to speed install later.
  9. command: "{{ ansible_pkg_mgr }} makecache"
  10. register: result
  11. until: result is succeeded
  12. when: not openshift_is_atomic | bool
  13. # Prepull the rpms for docker upgrade, but don't install
  14. - name: download docker upgrade rpm
  15. command: "{{ ansible_pkg_mgr }} install -y --downloadonly docker{{ '-' + docker_version }}"
  16. register: result
  17. until: result is succeeded
  18. when:
  19. - l_docker_upgrade is defined
  20. - l_docker_upgrade | bool
  21. - name: Stage cri-o updates
  22. command: "{{ ansible_pkg_mgr }} install -y --downloadonly {{ crio_pkgs | join(' ') }}"
  23. register: result
  24. until: result is succeeded
  25. when:
  26. - openshift_use_crio | bool
  27. vars:
  28. crio_pkgs:
  29. - "cri-o"
  30. - "cri-tools"
  31. - import_tasks: upgrade/rpm_upgrade.yml
  32. when: not openshift_is_atomic | bool