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. - name: Check for ca-bundle.crt
  10. stat:
  11. path: "{{ openshift.common.config_base }}/master/ca-bundle.crt"
  12. register: ca_bundle_stat
  13. failed_when: false
  14. - name: Check for ca.crt
  15. stat:
  16. path: "{{ openshift.common.config_base }}/master/ca.crt"
  17. register: ca_crt_stat
  18. failed_when: false
  19. - name: Migrate ca.crt to ca-bundle.crt
  20. command: mv ca.crt ca-bundle.crt
  21. args:
  22. chdir: "{{ openshift.common.config_base }}/master"
  23. when: ca_crt_stat.stat.isreg and not ca_bundle_stat.stat.exists
  24. - name: Link ca.crt to ca-bundle.crt
  25. file:
  26. src: "{{ openshift.common.config_base }}/master/ca-bundle.crt"
  27. path: "{{ openshift.common.config_base }}/master/ca.crt"
  28. state: link
  29. when: ca_crt_stat.stat.isreg and not ca_bundle_stat.stat.exists
  30. - name: Update oreg value
  31. yedit:
  32. src: "{{ openshift.common.config_base }}/master/master-config.yaml"
  33. key: 'imageConfig.format'
  34. value: "{{ oreg_url | default(oreg_url_master) }}"
  35. when: oreg_url is defined or oreg_url_master is defined
  36. - include_tasks: static.yml