- Google Cloud Platform 创建新实例
- 地区:
australia-southeast1-a
- 机器类型:1个vCPU
n1-standard-1
- 系统:Ubuntu 16.04 LTS (
ubuntu-1604-xenial-v20180814
) - 权限访问范围:允许所有 Cloud API 的全面访问权限
- project_id
project=temporal-bongo-213502
- 地区:
- 元数据添加
- 用putty,git bash,连到刚创建好的实例
gcloud compute config-ssh --ssh-key-file=.ssh/id_rsa
-
依赖包安装
apt update apt-get install software-properties-common apt-add-repository ppa:ansible/ansible apt-get update apt install ansible apt install python-pip pip install apache-libcloud
- 获取playbook脚本
git clone https://github.com/zeer15398376/2018_Group_9.git
mv 2018_Group_9/task2_google.yml ./
- 请注意
vim task2_google.yml
第9行peoject_id=
将自己的project_id填入进去,保存退出
- 运行palybook脚本
ansible-playbook task2_google.yml
相关文章
- 10-13CRT工具远程登陆Google Cloud远程ssh登录方法
- 10-13GCP(Google Cloud Platform)入门
- 10-13一个初学者的SAP Cloud Platform学习笔记
- 10-13Cross domain issue for an pure HTML5 application on SAP Cloud Platform
- 10-13An SDN-NFV Platform for Personal Cloud Services
- 10-13android-SignalR与Google Cloud Messaging
- 10-13解决谷歌云 ssh 登录权限被拒的问题 google cloud (publickey,gssapi-keyex,gssapi-with-mic)
- 10-13在SAP Cloud Platform ABAP编程环境里调用第三方API的ABAP示例代码
- 10-13Deploy your UI5 application into SAP Cloud Platform and launch as a tile
- 10-13解决谷歌云 ssh 登录权限被拒的问题 google cloud (publickey,gssapi-keyex,gssapi-with-mic)