upgrade_step.yml 634 B

12345678910111213141516171819202122232425262728
  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: '3.2'
  11. - import_playbook: upgrade_image_members.yml
  12. vars:
  13. etcd_upgrade_version: '3.2.7'
  14. - name: Upgrade fedora to latest
  15. hosts: oo_etcd_hosts_to_upgrade
  16. serial: 1
  17. tasks:
  18. - import_role:
  19. name: etcd
  20. tasks_from: upgrade_image.yml
  21. vars:
  22. etcd_peer: "{{ openshift.common.hostname }}"
  23. when:
  24. - ansible_distribution == 'Fedora'
  25. - not openshift_is_containerized | bool