Automated Deployment with Ansible
[email protected]
@BrendelConsult
Example: Create instances
local_action:
module: ec2
key_name: mykey
group: mysecuritygroup
instance_type: t2.micro
image: ami120abc90
region: useast1
count: 3
register: ec2results
{
"ec2results": {
"changed": true,
"instance_ids": [
"ida9fbbe4",
...
],
"instances": [
{
"id": "ida9fbbe4",
"instance_type": "t1.micro",
"image_id": "ami0729b73d",
"region": "useast1",
"public_ip": "54.253.65.41",
"private_ip": "10.248.39.121",
...
},
...