Cloud Provisioning
AWS Cloud Provisioning using Ansible Launching EC2 Instances Ansible Playbook ################## /etc/ansible/playbooks/ec2_launch.yml --- - name: Provision an EC2 Instance hosts: local connection: local gather_facts: False tags: provisioning # Necessary Variables for creating/provisioning the EC2 Instance vars: instance_type: t2.micro security_group: s2 # Change the security group name here image: ami-b55a51cc # Change the AMI, from which you want to launch the server region: us-west-2 # Change the Region keypair: key1 # Change the keypair name count: 1 hosts: webserver # Task that will be used to Launch/Create an EC2 Instance tasks: - name: Launch the new EC2 Instance local_action: ec2 group={{ security_group }} instance_type={{ instance_type}} image={{ image }}