September 2018
Beginner to intermediate
214 pages
5h 53m
English
This module allows the creation and termination of AWS EC2 instances. The following playbook shows how to create a new AWS EC2 instance:
---- name: AWS Module running hosts: localhost gather_facts: False tasks: - name: create a new AWS EC2 instance ec2: key_name: ansible_key instance_type: t2.micro image: ami-6b3fd60c wait: yes group: labservers count: 2 vpc_subnet_id: subnet-3ba41052 assign_public_ip: yes
Read now
Unlock full access