From 5b1453799bbd20c366fce09db8e1064d0fe9204b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Mass=C3=A9?= Date: Tue, 5 Mar 2019 19:06:53 +0100 Subject: [PATCH] fix task order --- support/docker/deploy-api.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/support/docker/deploy-api.yaml b/support/docker/deploy-api.yaml index de50b44..c49881f 100644 --- a/support/docker/deploy-api.yaml +++ b/support/docker/deploy-api.yaml @@ -92,13 +92,6 @@ - threescale_cicd_apicast_production_endpoint - threescale_cicd_sso_issuer_endpoint pre_tasks: - - name: Clone the git repo containing the API Definition - git: - repo: '{{ git_repository }}' - dest: '{{ playbook_dir }}/api' - version: '{{ git_ref }}' - when: 'git_repository|length > 0' - - name: Accept threescale_cicd_* variables from environment variables (lowercase) set_fact: '{{ item|lower }}': '{{ lookup(''env'', item|lower) }}' @@ -111,6 +104,13 @@ with_items: '{{ parameter_whitelist }}' when: 'lookup(''env'', item|upper)|length > 0' + - name: Clone the git repo containing the API Definition + git: + repo: '{{ git_repository }}' + dest: '{{ playbook_dir }}/api' + version: '{{ git_ref }}' + when: 'git_repository|length > 0' + - name: Check if /tmp/secrets/sso_issuer_endpoint exists stat: path: /tmp/secrets/sso_issuer_endpoint