Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
bbb88517
Commit
bbb88517
authored
Feb 28, 2014
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Since the ec2 parameter is named 'key_name' and 'keypair' is just an alias, use
the primary name of the parameter in the examples.
parent
5443ddec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
library/cloud/ec2
+10
-10
No files found.
library/cloud/ec2
View file @
bbb88517
...
...
@@ -232,7 +232,7 @@ EXAMPLES = '''
# Basic provisioning example
- local_action:
module: ec2
key
pair
: 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
key
pair
: 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
key
pair
: 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
key
pair
: 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
key
pair
: 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
key
pair
: 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:
key
pair
: 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 key
pair
={{ 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
key
pair
: mykey
key
_name
: mykey
instance_type: c1.medium
image: emi-40603AD1
wait: yes
...
...
@@ -419,7 +419,7 @@ local_action:
- local_action:
module: ec2
key
pair
: mykey
key
_name
: mykey
instance_type: c1.medium
image: emi-40603AD1
wait: yes
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment