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
3c455685
Commit
3c455685
authored
Jan 23, 2014
by
jctanner
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5603 from willthames/ec2_keypair_not_mandatory
key_name is not required when creating ec2 instances
parents
3d4a3459
8fb5a669
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
3 deletions
+1
-3
library/cloud/ec2
+1
-3
No files found.
library/cloud/ec2
View file @
3c455685
...
@@ -25,7 +25,7 @@ options:
...
@@ -25,7 +25,7 @@ options:
key_name:
key_name:
description:
description:
- key pair to use on the instance
- key pair to use on the instance
required:
tru
e
required:
fals
e
default: null
default: null
aliases: ['keypair']
aliases: ['keypair']
id:
id:
...
@@ -655,8 +655,6 @@ def main():
...
@@ -655,8 +655,6 @@ def main():
elif
module
.
params
.
get
(
'state'
)
==
'present'
:
elif
module
.
params
.
get
(
'state'
)
==
'present'
:
# Changed is always set to true when provisioning new instances
# Changed is always set to true when provisioning new instances
if
not
module
.
params
.
get
(
'key_name'
):
module
.
fail_json
(
msg
=
'key_name parameter is required for new instance'
)
if
not
module
.
params
.
get
(
'image'
):
if
not
module
.
params
.
get
(
'image'
):
module
.
fail_json
(
msg
=
'image parameter is required for new instance'
)
module
.
fail_json
(
msg
=
'image parameter is required for new instance'
)
(
instance_dict_array
,
new_instance_ids
,
changed
)
=
create_instances
(
module
,
ec2
)
(
instance_dict_array
,
new_instance_ids
,
changed
)
=
create_instances
(
module
,
ec2
)
...
...
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