upgrade.yaml 350 B

12345678910111213
  1. ---
  2. - name: Check if descheduler cronjob exists
  3. oc_obj:
  4. state: list
  5. kind: cronjob
  6. name: "{{ openshift_descheduler_cronjob_name }}"
  7. namespace: openshift-descheduler
  8. register: descheduler_cronjob
  9. - name: Upgrade descheduler cronjob
  10. include_tasks: install_descheduler.yaml
  11. when:
  12. - descheduler_cronjob.results.results[0] != {}