Browse Source

fix #3: call the 3scale API in the right order

pull/25/head
Nicolas Massé 8 years ago
parent
commit
e3920f2cf8
  1. 6
      tasks/main.yml

6
tasks/main.yml

@ -96,15 +96,15 @@
threescale_cicd_api_proxy_definition: '{{ threescale_cicd_api_proxy_definition|combine({ ''endpoint'': threescale_cicd_apicast_production_endpoint }) }}' threescale_cicd_api_proxy_definition: '{{ threescale_cicd_api_proxy_definition|combine({ ''endpoint'': threescale_cicd_apicast_production_endpoint }) }}'
when: 'threescale_cicd_apicast_production_endpoint is defined' when: 'threescale_cicd_apicast_production_endpoint is defined'
# Update the proxy
- import_tasks: update_proxy.yml
# Update the metrics # Update the metrics
- import_tasks: update_metrics.yml - import_tasks: update_metrics.yml
# Update the mapping rules # Update the mapping rules
- import_tasks: update_mapping_rules.yml - import_tasks: update_mapping_rules.yml
# Update the proxy
- import_tasks: update_proxy.yml
- name: Get the list of existing application plans - name: Get the list of existing application plans
uri: uri:
url: https://{{ inventory_hostname }}/admin/api/services/{{ threescale_cicd_api_service_id }}/application_plans.json?access_token={{ threescale_cicd_access_token|urlencode }} url: https://{{ inventory_hostname }}/admin/api/services/{{ threescale_cicd_api_service_id }}/application_plans.json?access_token={{ threescale_cicd_access_token|urlencode }}

Loading…
Cancel
Save