From b34b5edb8426e3678ce8e297ae62733c95e102d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miles=20St=C3=B6tzner?= Date: Sun, 7 Jan 2024 14:22:26 +0100 Subject: [PATCH] fix --- examples/xopera-pruning/lib/gcp/runtime/create.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/examples/xopera-pruning/lib/gcp/runtime/create.yaml b/examples/xopera-pruning/lib/gcp/runtime/create.yaml index 56a2475c52..fb79e373a9 100644 --- a/examples/xopera-pruning/lib/gcp/runtime/create.yaml +++ b/examples/xopera-pruning/lib/gcp/runtime/create.yaml @@ -4,7 +4,9 @@ gather_facts: false tasks: - name: Activate service account - shell: 'gcloud auth activate-service-account --key-file {{ service_account_file }} --project {{ project }}' + shell: gcloud auth activate-service-account --key-file {{ service_account_file }} --project {{ project }} + args: + executable: /usr/bin/bash # https://cloud.google.com/sql/docs/mysql/connect-instance-cloud-shell - name: Enable Cloud Build API @@ -15,6 +17,8 @@ if [ ${GCP_SERVICE_ENABLED} == 0 ]; then gcloud services enable ${GCP_SERVICE} fi + args: + executable: /usr/bin/bash - name: Enable appengine.googleapis.com shell: | @@ -24,11 +28,15 @@ if [ ${GCP_SERVICE_ENABLED} == 0 ]; then gcloud services enable ${GCP_SERVICE} fi + args: + executable: /usr/bin/bash # https://cloud.google.com/sdk/gcloud/reference/app/create - name: Create app - shell: 'gcloud app create --region {{ region }}' + shell: gcloud app create --region {{ region }} register: app_create_command failed_when: - "'Created' not in app_create_command.stderr" - "'already contains' not in app_create_command.stderr" + args: + executable: /usr/bin/bash \ No newline at end of file