Terraform 基础
provider "aws" { region = "us-west-2" } resource "aws_instance" "web" { ami = "ami-0c55b159cbfafe1d0" instance_type = "t2.micro" tags = { Name = "Python App Server" } }
Ansible Playbook
- hosts: web_servers become: yes tasks: - name: Install Python apt: name: python3 state: present - name: Install pip pip: name: pip state: present
转载请注明:周志洋的博客 » Python DevOps-基础设施即代码