diff options
author | Michael DeHaan <michael@ansibleworks.com> | 2013-05-05 13:34:29 -0400 |
---|---|---|
committer | Michael DeHaan <michael@ansibleworks.com> | 2013-05-05 13:34:29 -0400 |
commit | b5339fe32e5276176ddd19bb2d55052f92b443de (patch) | |
tree | 55c7ee5687839e6ed362525f0e87e6b80dd5720d /examples/playbooks | |
parent | 264f527c98aadbe08cf4856fc1d4174af53ff5a5 (diff) | |
download | ansible-b5339fe32e5276176ddd19bb2d55052f92b443de.tar.gz |
update eucalyptus/ec2 example
Diffstat (limited to 'examples/playbooks')
-rw-r--r-- | examples/playbooks/eucalyptus-ec2.yml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/playbooks/eucalyptus-ec2.yml b/examples/playbooks/eucalyptus-ec2.yml index 6f5f206375..c8fe338621 100644 --- a/examples/playbooks/eucalyptus-ec2.yml +++ b/examples/playbooks/eucalyptus-ec2.yml @@ -21,19 +21,19 @@ tasks: - name: Launch instance - local_action: ec2 keypair=$keypair group=$security_group instance_type=$instance_type image=$image wait=true count=5 + local_action: ec2 keypair={{keypair}} group={{security_group}} instance_type={{instance_type}} image={{image}} wait=true count=5 register: ec2 # Use with_items to add each instances public IP to a new hostgroup for use in the next play. - name: Add new instances to host group - local_action: add_host hostname=${item.public_ip} groupname=deploy + local_action: add_host hostname={{item.public_ip}} groupname=deploy with_items: ${ec2.instances} # Use the ec2_vol module to create volumes for attachment to each instance. Use with_items to attach to each instance (by returned id) launched previously. - name: Create a volume and attach - local_action: ec2_vol volume_size=20 instance=${item.id} + local_action: ec2_vol volume_size=20 instance={{item.id}} with_items: ${ec2.instances} # This play targets the new host group |