upgrade_step.yml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. ---
  2. - name: Determine etcd version
  3. hosts: oo_etcd_hosts_to_upgrade
  4. tasks:
  5. - import_role:
  6. name: etcd
  7. tasks_from: version_detect.yml
  8. - import_playbook: upgrade_rpm_members.yml
  9. vars:
  10. etcd_upgrade_version: '2.1'
  11. - import_playbook: upgrade_rpm_members.yml
  12. vars:
  13. etcd_upgrade_version: '2.2'
  14. - import_playbook: upgrade_image_members.yml
  15. vars:
  16. etcd_upgrade_version: '2.2.5'
  17. - import_playbook: upgrade_rpm_members.yml
  18. vars:
  19. etcd_upgrade_version: '2.3'
  20. - import_playbook: upgrade_image_members.yml
  21. vars:
  22. etcd_upgrade_version: '2.3.7'
  23. - import_playbook: upgrade_rpm_members.yml
  24. vars:
  25. etcd_upgrade_version: '3.0'
  26. - import_playbook: upgrade_image_members.yml
  27. vars:
  28. etcd_upgrade_version: '3.0.15'
  29. - import_playbook: upgrade_rpm_members.yml
  30. vars:
  31. etcd_upgrade_version: '3.1'
  32. - import_playbook: upgrade_image_members.yml
  33. vars:
  34. etcd_upgrade_version: '3.1.3'
  35. - import_playbook: upgrade_rpm_members.yml
  36. vars:
  37. etcd_upgrade_version: '3.2'
  38. - import_playbook: upgrade_image_members.yml
  39. vars:
  40. etcd_upgrade_version: '3.2.7'
  41. - name: Upgrade fedora to latest
  42. hosts: oo_etcd_hosts_to_upgrade
  43. serial: 1
  44. tasks:
  45. - import_role:
  46. name: etcd
  47. tasks_from: upgrade_image.yml
  48. vars:
  49. etcd_peer: "{{ openshift.common.hostname }}"
  50. when:
  51. - ansible_distribution == 'Fedora'
  52. - not openshift_is_containerized | bool