- command line values (for example, -u my_user, these are not variables)
- role defaults (defined in role/defaults/main.yml)
- inventory file or script group vars
- inventory group_vars/all
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
# Get all roles attached to all service accounts, users, groups per project per environment in GCP | |
# Dependencies: Create and auth GCP named config using $gcloud config configurations create <env>|<named config> | |
# Requires: gcloud, jq | |
set -e | |
ENVLIS="dev tst stg prd" | |
PROJECTLIST="/tmp/projects" | |
SALIST="/tmp/sa" | |
TIMESTAMP=$(date "+%Y%m%d%H%M") |