summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael DeHaan <michael@ansible.com>2014-02-28 13:52:47 -0500
committerMichael DeHaan <michael@ansible.com>2014-02-28 13:52:47 -0500
commitbbb88517ef61a267fc222a6f238d7a654ee3f6bc (patch)
treed3909e9d1eca4b26ec5642a9061e7a81b94ce346
parent5443ddec75f71f48a98ab547a0fb3e71ab86d1fa (diff)
downloadansible-bbb88517ef61a267fc222a6f238d7a654ee3f6bc.tar.gz
Since the ec2 parameter is named 'key_name' and 'keypair' is just an alias, use
the primary name of the parameter in the examples.
-rw-r--r--library/cloud/ec220
1 files changed, 10 insertions, 10 deletions
diff --git a/library/cloud/ec2 b/library/cloud/ec2
index 5b39e7cd3e..e050611fcf 100644
--- a/library/cloud/ec2
+++ b/library/cloud/ec2
@@ -232,7 +232,7 @@ EXAMPLES = '''
# Basic provisioning example
- local_action:
module: ec2
- keypair: mykey
+ key_name: mykey
instance_type: c1.medium
image: emi-40603AD1
wait: yes
@@ -242,7 +242,7 @@ EXAMPLES = '''
# Advanced example with tagging and CloudWatch
- local_action:
module: ec2
- keypair: mykey
+ key_name: mykey
group: databases
instance_type: m1.large
image: ami-6e649707
@@ -256,7 +256,7 @@ EXAMPLES = '''
# Single instance with additional IOPS volume from snapshot
local_action:
module: ec2
- keypair: mykey
+ key_name: mykey
group: webserver
instance_type: m1.large
image: ami-6e649707
@@ -273,7 +273,7 @@ local_action:
# Multiple groups example
local_action:
module: ec2
- keypair: mykey
+ key_name: mykey
group: ['databases', 'internal-services', 'sshable', 'and-so-forth']
instance_type: m1.large
image: ami-6e649707
@@ -287,7 +287,7 @@ local_action:
# Multiple instances with additional volume from snapshot
local_action:
module: ec2
- keypair: mykey
+ key_name: mykey
group: webserver
instance_type: m1.large
image: ami-6e649707
@@ -303,7 +303,7 @@ local_action:
# VPC example
- local_action:
module: ec2
- keypair: mykey
+ key_name: mykey
group_id: sg-1dc53f72
instance_type: m1.small
image: ami-6e649707
@@ -319,14 +319,14 @@ local_action:
hosts: localhost
gather_facts: False
vars:
- keypair: my_keypair
+ key_name: my_keypair
instance_type: m1.small
security_group: my_securitygroup
image: my_ami_id
region: us-east-1
tasks:
- name: Launch instance
- local_action: ec2 keypair={{ keypair }} group={{ security_group }} instance_type={{ instance_type }} image={{ image }} wait=true region={{ region }}
+ local_action: ec2 key_name={{ keypair }} group={{ security_group }} instance_type={{ instance_type }} image={{ image }} wait=true region={{ region }}
register: ec2
- name: Add new instance to host group
local_action: add_host hostname={{ item.public_ip }} groupname=launched
@@ -403,7 +403,7 @@ local_action:
- local_action:
module: ec2
- keypair: mykey
+ key_name: mykey
instance_type: c1.medium
image: emi-40603AD1
wait: yes
@@ -419,7 +419,7 @@ local_action:
- local_action:
module: ec2
- keypair: mykey
+ key_name: mykey
instance_type: c1.medium
image: emi-40603AD1
wait: yes