Skip to content

lazyninjas/ansible-gcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GCP for lazy peop..

Collection of ansible roles used to deploy resources to GCP. Used to minify work when deploying your complicated cloud projects. Expected to be run on continous integration tools like Bitbucket Pipelines or Github Actions.

Requirements

This collection was created as a simplification of Google.Cloud collection and it is built directly on top of its modules, so it needs to be installed as well.

Installation

ansible-galaxy install lazyninjas.gcp

Roles

Common Configuration

Most of the global variables can be auto configured using environment variables and overriden by passing them to the specific role.

Name/Environment name Default Required Description
gcp_project_id / GCP_PROJECT_ID null Your GCP project ID
gcp_region / GCP_REGION null Region for this role
gcp_service_account_file / GCP_SERVICE_ACCOUNT_FILE null Path to the service account file with credentials
state present present or absent
gcp_project_environment / GCP_PROJECT_ENVIRONMENT production Lowercase name of your project environment. The role will append datetime to your versions if the name is not production