suzuki-shunsuke.gcloud-ubuntu

gcloud-ubuntu

Build Status

Ansible Role to Install gcloud on Ubuntu.

# Create an environment variable for the correct distribution
export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)"

# Add the Cloud SDK distribution URI as a package source
echo "deb https://packages.cloud.google.com/apt $CLOUD_SDK_REPO main" | sudo tee /etc/apt/sources.list.d/google-cloud-sdk.list

# Import the Google Cloud Platform public key
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -

# Update the package list and install the Cloud SDK
sudo apt-get update && sudo apt-get install google-cloud-sdk

https://galaxy.ansible.com/suzuki-shunsuke/gcloud-ubuntu/

Requirements

Nothing.

Role Variables

Nothing.

Dependencies

Nothing.

Example Playbook

- hosts: servers
  roles:
  - role: suzuki-shunsuke.gcloud-ubuntu

License

MIT

About

Install gcloud on Ubuntu

Install
ansible-galaxy install suzuki-shunsuke.gcloud-ubuntu
GitHub repository
License
mit
Downloads
448
Owner
Platform Engineer / OSS Developer / Go