title: gitlab yaml anchor reference in an if clause
body: <p>Is it possible, or is there a way, to use a yaml anchor reference in a BASH if clause.
  If so, how?
  This is what I'm attempting so far.</p>
  <pre><code>create-cluster:
    needs: 
      - terra-bootstrap
    script:
      - export TF_VAR_state_bucket_prefix=&quot;${TF_VAR_vsad}/${TF_VAR_cluster_name}&quot;
      - pushd terra-cluster
      - *init_with_gcs_state
      - |
        if [[ &quot;${CLUSTER_EXISTS}&quot; == 'false' ]]; then
         terraform apply -auto-approve
         *does_cluster_exist
        fi
      - popd
    stage: create-cluster
    tags:
      - gke
  </code></pre>