upgrade.yml 413 B

12345678910111213
  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. - name: Migrate from etcd to CRDs
  9. import_tasks: migrate.yml
  10. when: broker_configmap.dao.get('type') != 'crd'
  11. vars:
  12. broker_configmap: '{{ (broker_configmap_raw.results.results.0.data | from_yaml)["broker-config"] | from_yaml }}'