Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
milesstoetzner committed Jan 7, 2024
1 parent d7663a0 commit b34b5ed
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions examples/xopera-pruning/lib/gcp/runtime/create.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand All @@ -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

0 comments on commit b34b5ed

Please sign in to comment.