upgrade.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. ---
  2. - include_tasks: upgrade/rpm_upgrade.yml
  3. when: not openshift_is_containerized | bool
  4. - include_tasks: upgrade/upgrade_scheduler.yml
  5. # master_config_hook is passed in from upgrade play.
  6. - include_tasks: "upgrade/{{ master_config_hook }}"
  7. when: master_config_hook is defined
  8. - include_tasks: journald.yml
  9. - include_tasks: systemd_units.yml
  10. - name: Check for ca-bundle.crt
  11. stat:
  12. path: "{{ openshift.common.config_base }}/master/ca-bundle.crt"
  13. register: ca_bundle_stat
  14. failed_when: false
  15. - name: Check for ca.crt
  16. stat:
  17. path: "{{ openshift.common.config_base }}/master/ca.crt"
  18. register: ca_crt_stat
  19. failed_when: false
  20. - name: Migrate ca.crt to ca-bundle.crt
  21. command: mv ca.crt ca-bundle.crt
  22. args:
  23. chdir: "{{ openshift.common.config_base }}/master"
  24. when: ca_crt_stat.stat.isreg and not ca_bundle_stat.stat.exists
  25. - name: Link ca.crt to ca-bundle.crt
  26. file:
  27. src: "{{ openshift.common.config_base }}/master/ca-bundle.crt"
  28. path: "{{ openshift.common.config_base }}/master/ca.crt"
  29. state: link
  30. when: ca_crt_stat.stat.isreg and not ca_bundle_stat.stat.exists
  31. - name: Update oreg value
  32. yedit:
  33. src: "{{ openshift.common.config_base }}/master/master-config.yaml"
  34. key: 'imageConfig.format'
  35. value: "{{ oreg_url | default(oreg_url_master) }}"
  36. when: oreg_url is defined or oreg_url_master is defined