Loading templates/gitlab-ci-ansible-gcp.yml +39 −40 Original line number Diff line number Diff line Loading @@ -50,8 +50,7 @@ variables: GCP_PROD_OIDC_ACCOUNT: $[[ inputs.gcp-prod-oidc-account ]] GCP_PROD_OIDC_PROVIDER: $[[ inputs.gcp-prod-oidc-provider ]] .gcp-provider-auth: before_script: .ansible-gcp-adc: - echo "Installing GCP authentication with env GOOGLE_APPLICATION_CREDENTIALS file" - echo $GCP_JWT > "$CI_BUILDS_DIR/.auth_token.jwt" - |- Loading Loading @@ -95,7 +94,7 @@ variables: aud: "$GCP_OIDC_AUD" before_script: - !reference [.ansible-scripts] - !reference [.gcp-provider-auth, before_script] - !reference [.ansible-gcp-adc] - install_ca_certs "${CUSTOM_CA_CERTS:-$DEFAULT_CA_CERTS}" - cd $ANSIBLE_PROJECT_DIR - assert_defined "${ENV_INVENTORY:-${ANSIBLE_DEFAULT_INVENTORY}}" 'Missing required Ansible inventory' Loading @@ -107,7 +106,7 @@ variables: aud: "$GCP_OIDC_AUD" before_script: - !reference [.ansible-scripts] - !reference [.gcp-provider-auth, before_script] - !reference [.ansible-gcp-adc] - install_ca_certs "${CUSTOM_CA_CERTS:-$DEFAULT_CA_CERTS}" - cd $ANSIBLE_PROJECT_DIR - assert_defined "${ENV_INVENTORY:-${ANSIBLE_DEFAULT_INVENTORY}}" 'Missing required Ansible inventory' Loading Loading
templates/gitlab-ci-ansible-gcp.yml +39 −40 Original line number Diff line number Diff line Loading @@ -50,8 +50,7 @@ variables: GCP_PROD_OIDC_ACCOUNT: $[[ inputs.gcp-prod-oidc-account ]] GCP_PROD_OIDC_PROVIDER: $[[ inputs.gcp-prod-oidc-provider ]] .gcp-provider-auth: before_script: .ansible-gcp-adc: - echo "Installing GCP authentication with env GOOGLE_APPLICATION_CREDENTIALS file" - echo $GCP_JWT > "$CI_BUILDS_DIR/.auth_token.jwt" - |- Loading Loading @@ -95,7 +94,7 @@ variables: aud: "$GCP_OIDC_AUD" before_script: - !reference [.ansible-scripts] - !reference [.gcp-provider-auth, before_script] - !reference [.ansible-gcp-adc] - install_ca_certs "${CUSTOM_CA_CERTS:-$DEFAULT_CA_CERTS}" - cd $ANSIBLE_PROJECT_DIR - assert_defined "${ENV_INVENTORY:-${ANSIBLE_DEFAULT_INVENTORY}}" 'Missing required Ansible inventory' Loading @@ -107,7 +106,7 @@ variables: aud: "$GCP_OIDC_AUD" before_script: - !reference [.ansible-scripts] - !reference [.gcp-provider-auth, before_script] - !reference [.ansible-gcp-adc] - install_ca_certs "${CUSTOM_CA_CERTS:-$DEFAULT_CA_CERTS}" - cd $ANSIBLE_PROJECT_DIR - assert_defined "${ENV_INVENTORY:-${ANSIBLE_DEFAULT_INVENTORY}}" 'Missing required Ansible inventory' Loading