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
d951ed65
Commit
d951ed65
authored
Aug 05, 2014
by
James Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds support for public_ip boolean for launch configurations.
parent
b8783c75
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletions
+11
-1
library/cloud/ec2_lc
+11
-1
No files found.
library/cloud/ec2_lc
View file @
d951ed65
...
...
@@ -79,6 +79,13 @@ options:
required: false
default: false
aliases: []
assign_public_ip:
description:
- whether instances in group are launched with a public IP.
required: false
default: false
aliases: []
version_added: "1.8"
extends_documentation_fragment: aws
"""
...
...
@@ -139,6 +146,7 @@ def create_launch_config(connection, module):
instance_type
=
module
.
params
.
get
(
'instance_type'
)
spot_price
=
module
.
params
.
get
(
'spot_price'
)
instance_monitoring
=
module
.
params
.
get
(
'instance_monitoring'
)
assign_public_ip
=
module
.
params
.
get
(
'assign_public_ip'
)
bdm
=
BlockDeviceMapping
()
if
volumes
:
...
...
@@ -159,7 +167,8 @@ def create_launch_config(connection, module):
block_device_mappings
=
[
bdm
],
instance_type
=
instance_type
,
spot_price
=
spot_price
,
instance_monitoring
=
instance_monitoring
)
instance_monitoring
=
instance_monitoring
,
associate_public_ip_address
=
assign_public_ip
)
launch_configs
=
connection
.
get_all_launch_configurations
(
names
=
[
name
])
changed
=
False
...
...
@@ -201,6 +210,7 @@ def main():
state
=
dict
(
default
=
'present'
,
choices
=
[
'present'
,
'absent'
]),
spot_price
=
dict
(
type
=
'float'
),
instance_monitoring
=
dict
(
default
=
False
,
type
=
'bool'
),
assign_public_ip
=
dict
(
default
=
False
,
type
=
'bool'
)
)
)
...
...
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