upgrade.yml 513 B

123456789101112131415
  1. ---
  2. - name: retrieve broker configmap
  3. oc_configmap:
  4. state: list
  5. name: broker-config
  6. namespace: openshift-ansible-service-broker
  7. register: broker_configmap_raw
  8. - set_fact:
  9. broker_configmap: '{{ (broker_configmap_raw.results.results.0.data | from_yaml)["broker-config"] | from_yaml }}'
  10. when: broker_configmap_raw.results.results.0.data is defined
  11. - name: Migrate from etcd to CRDs
  12. import_tasks: migrate.yml
  13. when: broker_configmap is defined and broker_configmap.dao.get('type') != 'crd'