【初心者指南】在GCE实例上安装和运行Ansible(Note: This translation assumes that GCE refers to Google Compute Engine and that the term “Ansible” should not be translated.)
首先
我一直关注的一种配置管理工具Ansible,我尝试在Google Cloud Platform的虚拟机实例上运行它。
为了帮助像我一样有兴趣在GCE上安装和尝试Ansible的人们,我想记录下我自己的尝试。
环境准备。
-
- 准备安装Ansible的虚拟机实例
访问GCP项目
选择“创建实例”
创建任意实例(实例的创建示例如下):
实例名称:ansible-host
地区:亚洲-东北1
区域:亚洲-东北1-b
机器类型:f1-micro(仅用于测试,以降低成本)
启动盘(操作系统):CentOS 7
创建工作目录
$ mkdir gcp_ansible

你可以参考下面这个网站。
以下是参考资料:
– https://docs.ansible.com/ansible/latest/scenario_guides/guide_gce.html
– https://docs.ansible.com/ansible/latest/modules/gce_module.html