Commit 1ff8c78f by Michael DeHaan

Removing legacy variable usage.

parent 764504b5
...@@ -244,14 +244,14 @@ local_action: ...@@ -244,14 +244,14 @@ local_action:
region: us-east-1 region: us-east-1
tasks: tasks:
- name: Launch instance - name: Launch instance
local_action: ec2 keypair=$keypair group=$security_group instance_type=$instance_type image=$image wait=true region=$region local_action: ec2 keypair={{ keypair }} group={{ security_group }} instance_type={{ instance_type }} image={{ image }} wait=true region={{ region }}
register: ec2 register: ec2
- name: Add new instance to host group - name: Add new instance to host group
local_action: add_host hostname=${item.public_ip} groupname=launched local_action: add_host hostname={{ item.public_ip }} groupname=launched
with_items: ${ec2.instances} with_items: ec2.instances
- name: Wait for SSH to come up - name: Wait for SSH to come up
local_action: wait_for host=${item.public_dns_name} port=22 delay=60 timeout=320 state=started local_action: wait_for host={{ item.public_dns_name }} port=22 delay=60 timeout=320 state=started
with_items: ${ec2.instances} with_items: ec2.instances
- name: Configure instance(s) - name: Configure instance(s)
hosts: launched hosts: launched
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment